3 # check for unzip before we continue
4 if [ ! "$(command -v unzip)" ]; then
5 echo 'unzip is required but was not found. Install unzip first and then run this script again.' >&2
10 wget -O /tmp/nanorc.zip https://github.com/scopatz/nanorc/archive/master.zip
14 unzip -o "/tmp/nanorc.zip"
23 # add all includes from ~/.nano/nanorc if they're not already there
25 if ! grep -q "$inc" "${NANORC_FILE}"; then
26 echo "$inc" >> "$NANORC_FILE"
31 _update_nanorc_lite(){
32 sed -i '/include "\/usr\/share\/nano\/\*\.nanorc"/i include "~\/.nano\/*.nanorc"' "${NANORC_FILE}"
41 echo "Install script for nanorc syntax highlights"
42 echo "Call with -l or --lite to update .nanorc with secondary precedence to existing .nanorc includes"