Skip to content

Commit

Permalink
Added automatic installer
Browse files Browse the repository at this point in the history
  • Loading branch information
astronautlevel2 committed Dec 15, 2015
1 parent a345c2b commit b627b45
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit b627b45

Please sign in to comment.