Created
April 6, 2023 13:57
-
-
Save mykappa/d1cd86daea3d7f4fc0836040a9ec89b9 to your computer and use it in GitHub Desktop.
Syntax Highlighting in `nano` with `nanorc` on macOS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install newest version of nano and nanorc | |
brew update | |
brew install nano nanorc | |
# Create `~/.nanorc` file | |
echo "include /opt/homebrew/Cellar/nanorc/*/share/nanorc/*.nanorc" >> ~/.nanorc | |
# The error about the color `brightnormal` | |
# `Error in /opt/homebrew/Cellar/nanorc/*/share/nanorc/nanorc.nanorc on line 26: Color 'normal' takes no prefix` | |
# can be fixed by commenting out line 26 in /opt/homebrew/Cellar/nanorc/*/share/nanorc/nanorc.nanorc | |
# (see also https://git.savannah.gnu.org/cgit/nano.git/commit/src/rcfile.c?id=e0442849988444065145449c90861172c6aba302) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment