Skip to content

Instantly share code, notes, and snippets.

@andkirby
Last active November 27, 2016 23:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andkirby/65607ce983c3a732ff94cc2ce4220b6d to your computer and use it in GitHub Desktop.
Save andkirby/65607ce983c3a732ff94cc2ce4220b6d to your computer and use it in GitHub Desktop.
#!/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