1
0
mirror of https://github.com/scopatz/nanorc synced 2024-11-09 11:09:59 +01:00
nanorc/install.sh

21 lines
355 B
Bash
Raw Normal View History

2015-12-15 04:02:50 +01:00
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