Skip to content

Instantly share code, notes, and snippets.

@mykappa
Created April 6, 2023 13:57
Show Gist options
  • Save mykappa/d1cd86daea3d7f4fc0836040a9ec89b9 to your computer and use it in GitHub Desktop.
Save mykappa/d1cd86daea3d7f4fc0836040a9ec89b9 to your computer and use it in GitHub Desktop.
Syntax Highlighting in `nano` with `nanorc` on macOS
# 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