swc-windows-installer.sh: Rename ~/.nanorc to ~/nano.rc
authorW. Trevor King <wking@tremily.us>
Wed, 12 Mar 2014 23:41:05 +0000 (16:41 -0700)
committerW. Trevor King <wking@tremily.us>
Wed, 12 Mar 2014 23:41:05 +0000 (16:41 -0700)
The nano FAQ hints that this is the prefered path on MS Windows [1],
and Ethan White confirmed it in testing [2].

[1]: http://www.nano-editor.org/dist/v2.2/faq.html#3.9.1
[2]: https://github.com/swcarpentry/bc/pull/357#issuecomment-37482899

swc-windows-installer.sh

index 7ee61b1bc51787cf594edf771b6fe5b0613af9bd..84952b7f74cc7fd4ebfe9e13f1edee7a3a47c72f 100755 (executable)
@@ -6,7 +6,7 @@
 #
 # The script:
 # * Installs nano and makes it accessible from msysGit
-# * Creates ~/.nanorc with links to syntax highlighting configs
+# * Creates ~/nano.rc with links to syntax highlighting configs
 # * Provides standard nosetests behavior (if Python and the nose
 #   module are installed) for msysGit
 #
@@ -91,11 +91,11 @@ install_nanorc()
                '03233ae480689a008eb98feb1b599807' \
                "${INSTALL_DIRECTORY}" \
                --strip-components 1 &&
-       if [ ! -f ~/.nanorc ]
+       if [ ! -f ~/nano.rc ]
        then
                for RCPATH in "${INSTALL_DIRECTORY}"/doc/syntax/*.nanorc
                do
-                       echo "include ${RCPATH}" >> ~/.nanorc
+                       echo "include ${RCPATH}" >> ~/nano.rc
                done
        fi
 }