mirror of
https://github.com/scopatz/nanorc
synced 2024-11-27 12:25:53 +01:00
23 lines
390 B
Bash
Executable File
23 lines
390 B
Bash
Executable File
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
|
|
rm /tmp/nanorc.zip
|
|
|
|
if [ ! -f ~/.nanorc ]
|
|
then
|
|
touch ~/.nanorc
|
|
fi
|
|
|
|
cat ~/.nano/nanorc >> ~/.nanorc
|
|
sort -u ~/.nanorc > /tmp/nanorc2
|
|
cat /tmp/nanorc2 > ~/.nanorc
|
|
rm /tmp/nanorc2
|