/install_colored_nano Secret
Last active
November 27, 2016 23:04
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
#!/usr/bin/env bash | |
# Install colorization to your nano | |
# curl -Ls https://gist.githubusercontent.com/andkirby/65607ce983c3a732ff94cc2ce4220b6d/raw | bash -s -- $(cd; pwd) | |
# nano colorization | |
target_dir=${1:-/root} | |
curl -Ls https://github.com/scopatz/nanorc/archive/master.tar.gz -o /tmp/nanorc.tar.gz | |
tar xf /tmp/nanorc.tar.gz -C ${target_dir} | |
mv ${target_dir}/nanorc-master ${target_dir}/.nano | |
cat ${target_dir}/.nano/nanorc >> ${target_dir}/.nanorc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment