|# Install Nano Editor (https://www.nano-editor.org) with syntax highlighting on the Mac|
|# Version 4.0 ("Thy Rope of Sands") released March 24th 2019|
|tar -xvf nano-4.0.tar.gz|
|mv nano-4.0 .nano|
|sudo make install|
|cat > "~/.nanorc" <<EOF|
|# Enable syntax highlighting in Nano|
More syntax highlighting options can be found here: https://github.com/scopatz/nanorc
You can create a folder called "syntax_improved" inside ~./nano/ and copy all .nanorc files there, then simply extend your .nanorc file to read these new definitions as well with:
Nice! (Updated: April/16/2019)
Just merged all of your solutions and tips on a single-updated script, also, it doesn't require wget nor brew to be used... Since I made it partially variable-oriented, on future nano versions we will be able to re-use this script...
Error in /Users/andreas/.nanorc on line 2: Error reading ~/.nano/syntax/*.nanorc: No such file or directory
Error in /Users/andreas/.nanorc on line 3: Error reading ~/.nano/syntax_improved/*.nanorc: No such file or directory
even though the directories and files are there.
I changed the order of the way the PATHs are loaded in
I also got error as @a3igner reported.
My prescription is set alias nano at
It's good to go.