-
Install Homebrew if you don't already have it: http://mxcl.github.io/homebrew/
-
Install nano from homebrew
brew install nano
-
Update your nanorc file with the contents of the nanorc file below
nano ~/.nanorc
-
Add custom syntax files to nanorc
include /opt/homebrew/Cellar/nano/5.7/share/nano/*.nanorc
-
To add line numbers we just insert
set linenumbers
Last active
May 26, 2021 10:05
-
-
Save MohamedElashri/b5a15a3f8c358f3c4e6690170f34331d to your computer and use it in GitHub Desktop.
nano editor customization #syntax-highlighting
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment