mirror of
https://github.com/scopatz/nanorc.git
synced 2024-10-18 02:06:40 -07:00
Merge pull request #232 from SuperSandro2000/patch-1
Remove useless checks, formatting
This commit is contained in:
commit
907b2e3261
1 changed files with 6 additions and 12 deletions
|
|
@ -8,10 +8,7 @@ fi
|
|||
|
||||
_fetch_sources(){
|
||||
wget -O /tmp/nanorc.zip https://github.com/scopatz/nanorc/archive/master.zip
|
||||
if [ ! -d ~/.nano/ ]
|
||||
then
|
||||
mkdir ~/.nano/
|
||||
fi
|
||||
mkdir -p ~/.nano/
|
||||
|
||||
cd ~/.nano/ || exit
|
||||
unzip -o "/tmp/nanorc.zip"
|
||||
|
|
@ -21,10 +18,7 @@ _fetch_sources(){
|
|||
}
|
||||
|
||||
_update_nanorc(){
|
||||
if [ ! -f ~/.nanorc ]
|
||||
then
|
||||
touch ~/.nanorc
|
||||
fi
|
||||
|
||||
# add all includes from ~/.nano/nanorc if they're not already there
|
||||
while read -r inc; do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue