Forked from fevangelou/install_nano_on_macos_without_homebrew.sh
Created
July 28, 2021 14:03
-
-
Save OpenSourceIronman/6087b8545fde5ad72f9dd88f9fa69d28 to your computer and use it in GitHub Desktop.
Install Nano Editor v4.0 (with syntax highlighting) on the Mac
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
#!/bin/bash | |
# 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 | |
cd ~/ | |
wget https://www.nano-editor.org/dist/v4/nano-4.0.tar.gz | |
tar -xvf nano-4.0.tar.gz | |
mv nano-4.0 .nano | |
cd .nano/ | |
./configure | |
make | |
sudo make install | |
touch ~/.nanorc | |
cat > "~/.nanorc" <<EOF | |
# Enable syntax highlighting in Nano | |
include ~/.nano/syntax/*.nanorc | |
EOF | |
exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment