Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

git-extra: Install nanorc and git.nanorc file #169

Merged
merged 1 commit into from
Jan 30, 2018
Merged

git-extra: Install nanorc and git.nanorc file #169

merged 1 commit into from
Jan 30, 2018

Conversation

nalla
Copy link
Contributor

@nalla nalla commented Jan 26, 2018

Quite a while now Git for Windows is given the users a choice to
select the nano editor over vim as the default one. So it should
feel 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 lot
syntax-highlighting files already. But they are not enabled by default.
So this commit also adds a slightly modifed nanorc file to the
git-extra package. The file will be installed into the /etc folder
just like the vimrc file. The following list shows all settings
that will be uncommented in this file. The default nanorc has no
settings enabled.

set titlecolor brightwhite,blue
set statuscolor brightwhite,green
set selectedcolor brightwhite,magenta
set numbercolor cyan
set keycolor cyan
set functioncolor green
include "/usr/share/nano/*.nanorc"

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).

Quite a while now _Git for Windows_ is given the users a choice to
select the `nano` editor over `vim` as the default one. So it should
feel 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 lot
syntax-highlighting files already. But they are not enabled by default.
So this commit also adds a slightly modifed `nanorc` file to the
git-extra package. The file will be installed into the `/etc` folder
just like the `vimrc` file. The following list shows all settings
that will be uncommented in this file. The default `nanorc` has no
settings enabled.

    set titlecolor brightwhite,blue
    set statuscolor brightwhite,green
    set selectedcolor brightwhite,magenta
    set numbercolor cyan
    set keycolor cyan
    set functioncolor green
    include "/usr/share/nano/*.nanorc"

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).

Signed-off-by: Manuel Blanquett <[email protected]>
@dscho dscho merged commit fa77fe5 into git-for-windows:master Jan 30, 2018
@dscho
Copy link
Member

dscho commented Jan 30, 2018

Thanks!

dscho added a commit that referenced this pull request Jan 31, 2018
When using GNU nano as Git's default editor, [it is now colorful (shows
syntax-highlighting)](#169).

Signed-off-by: Johannes Schindelin <[email protected]>
@nalla nalla deleted the feature/beautify-nano-support branch February 13, 2018 20:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants