Requires as a minimum Xcode CLI tools (no need for a full install). Can be installed via the following:
$ xcode-select --installAlso provided an example .nanorc, which will enable color coding of common source files (include directive).
Enjoy!
| include "/usr/local/share/nano/*.nanorc" | |
| set tabsize 2 | |
| bind M-f nextword main | |
| bind M-b prevword main |
Requires as a minimum Xcode CLI tools (no need for a full install). Can be installed via the following:
$ xcode-select --installAlso provided an example .nanorc, which will enable color coding of common source files (include directive).
Enjoy!
| #!/bin/bash -e | |
| VERSION="9.2" | |
| WORK_DIR=$(mktemp -d) | |
| sudo --validate | |
| curl --fail --silent "https://www.nano-editor.org/dist/v${VERSION%.*}/nano-$VERSION.tar.gz" | | |
| tar --directory "$WORK_DIR" --extract --gzip | |
| pushd "$WORK_DIR/nano-$VERSION" | |
| ./configure --prefix /usr/local | |
| make | |
| sudo make install | |
| popd | |
| nano --version | |
| # cleanup | |
| rm -fr "$WORK_DIR" |