Skip to content

Commit

Permalink
update documentation and installation script for v2.9 branch
Browse files Browse the repository at this point in the history
  • Loading branch information
Ondřej Ešler committed Jul 23, 2019
1 parent adfc6ad commit 3a9bb13
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Readme.rst
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@ where ``$install_path`` is ``/usr/share/nano-syntax-highlighting`` or ``~/.nano/
~~~~~~~~~~~~~~~~~~~~~~
Finally, you can run an automatic installer using the following code::

$ curl https://raw.githubusercontent.com/scopatz/nanorc/master/install.sh | sh
$ curl https://raw.githubusercontent.com/scopatz/nanorc/v2.9/install.sh | sh

or alternatively::

$ wget https://raw.githubusercontent.com/scopatz/nanorc/master/install.sh -O- | sh
$ wget https://raw.githubusercontent.com/scopatz/nanorc/v2.9/install.sh -O- | sh

*Note -
some syntax definitions which exist in Nano upstream may be preferable to the ones provided by this package.
Expand Down
6 changes: 3 additions & 3 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@ if [ ! "$(command -v unzip)" ]; then
fi

_fetch_sources(){
wget -O /tmp/nanorc.zip https://github.com/scopatz/nanorc/archive/master.zip
wget -O /tmp/nanorc.zip https://github.com/scopatz/nanorc/archive/v2.9.zip
if [ ! -d ~/.nano/ ]
then
mkdir ~/.nano/
fi

cd ~/.nano/ || exit
unzip -o "/tmp/nanorc.zip"
mv nanorc-master/* ./
rm -rf nanorc-master
mv nanorc-v2.9/* ./
rm -rf nanorc-v2.9
rm /tmp/nanorc.zip
}

Expand Down

0 comments on commit 3a9bb13

Please sign in to comment.