mirror of
https://github.com/scopatz/nanorc.git
synced 2024-10-18 02:06:40 -07:00
Added automatic installer
This commit is contained in:
parent
a345c2bd7b
commit
b627b455ae
1 changed files with 20 additions and 0 deletions
20
install.sh
Executable file
20
install.sh
Executable file
|
|
@ -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
|
||||||
Loading…
Add table
Add a link
Reference in a new issue