diff --git a/install.sh b/install.sh new file mode 100755 index 0000000..6f3ba8e --- /dev/null +++ b/install.sh @@ -0,0 +1,20 @@ +wget -O /tmp/nanorc.zip https://github.com/scopatz/nanorc/archive/master.zip +if [ ! -d ~/.nano/ ] +then + mkdir ~/.nano/ +fi + +cd ~/.nano/ + +unzip -o "/tmp/nanorc.zip" +mv nanorc-master/* ./ +rm -rf nanorc-master + +if [ ! -f ~/.nanorc ] +then + touch ~/.nanorc +fi + +cat ~/.nano/nanorc >> ~/.nanorc +sort -u ~/.nanorc > /tmp/nanorc2 +cat /tmp/nanorc2 > ~/.nanorc