From: W. Trevor King Date: Thu, 13 Mar 2014 00:02:50 +0000 (-0700) Subject: swc-windows-installer.py: Rename ~/.nanorc to ~/nano.rc X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=3ee7b77151cf591bc82f7900f9d5afa313985bc0;p=swc-workshop.git swc-windows-installer.py: Rename ~/.nanorc to ~/nano.rc 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 --- diff --git a/swc-windows-installer.py b/swc-windows-installer.py index 3c9d9f9..440a9ab 100755 --- a/swc-windows-installer.py +++ b/swc-windows-installer.py @@ -6,7 +6,7 @@ Helps mimic a *nix environment on Windows with as little work as possible. 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 for msysgit To use: @@ -123,7 +123,7 @@ def install_nanorc(install_directory): sha1='f2a628394f8dda1b9f28c7e7b89ccb9a6dbd302a', install_directory=install_directory, strip_components=1) - nanorc = os.path.join(os.path.expanduser('~'), '.nanorc') + nanorc = os.path.join(os.path.expanduser('~'), 'nano.rc') if not os.path.isfile(nanorc): syntax_dir = os.path.join(install_directory, 'doc', 'syntax') with open(nanorc, 'w') as f: