diff --git a/Readme.rst b/Readme.rst index 7cb17a7..3bd6367 100644 --- a/Readme.rst +++ b/Readme.rst @@ -13,15 +13,15 @@ These should be placed inside of the ``~/.nano/`` directory. Or for system-wide installation ``/usr/share/nano-syntax-highlighting/``. In other words:: - git clone git@github.com:scopatz/nanorc.git ~/.nano + git clone --single-branch --branch=v2.9 git@github.com:scopatz/nanorc.git ~/.nano *Note - if you have any issues (ssh was not properly configured), alternatively use:: - git clone https://github.com/scopatz/nanorc.git ~/.nano + git clone --single-branch --branch=v2.9 https://github.com/scopatz/nanorc.git ~/.nano *System wide will look like so*:: - sudo git clone https://github.com/scopatz/nanorc.git /usr/share/nano-syntax-highlighting/ + sudo git clone --single-branch --branch=v2.9 https://github.com/scopatz/nanorc.git /usr/share/nano-syntax-highlighting/ **NOTE**: \< and \> are regular character escapes on macOS. The bug's fixed in Nano, but this might be a problem if you are using an older version. If this is the case, replace them respectively with [[:<:]] and [[:>:]]. @@ -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. diff --git a/etc-hosts.nanorc b/etc-hosts.nanorc index eb8a51e..0c44bfd 100644 --- a/etc-hosts.nanorc +++ b/etc-hosts.nanorc @@ -8,7 +8,7 @@ color yellow "^[0-9\.]+\s" icolor green "^[0-9a-f:]+\s" # interpunction -color normal "[.:]" +color white "[.:]" # comments color brightblack "^#.*" diff --git a/install.sh b/install.sh index c26cc80..0f2e539 100755 --- a/install.sh +++ b/install.sh @@ -7,13 +7,13 @@ 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 mkdir -p ~/.nano/ 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 }