git-extra: Install nanorc and git.nanorc file #169
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Quite a while now Git for Windows is given the users a choice to
select the
nano
editor overvim
as the default one. So it shouldfeel natural to us to improve the user experience with this new default
editor.
This commit will add the
git.nanorc
file that is available on github(https://github.com/scopatz/nanorc/blob/master/git.nanorc) to the
git-extra package. git-extra will install that syntax-highlighting file
to
/usr/share/nano
so that it will be globally available.This leads us to the second improvement.
nano
comes with quite a lotsyntax-highlighting files already. But they are not enabled by default.
So this commit also adds a slightly modifed
nanorc
file to thegit-extra package. The file will be installed into the
/etc
folderjust like the
vimrc
file. The following list shows all settingsthat will be uncommented in this file. The default
nanorc
has nosettings enabled.
This first group of settings will enable the default nano ui colors.
The last one will enable all those pretty syntax-highlighting files (
including the git based one).