#How to install the 'nano' text editor in msysgit
Adapted from https://vijayparsi.wordpress.com/2012/03/07/nano-with-mingw32-for-msysgit/
#Fast and simple install Run msysgit as administrator and copy and paste (insert-key) the following line, press enter. It will execute the install_nano.sh script found at the bottom of this file. If you prefer to install nano manually, the process is described below.
cd /c/Program\ Files\ \(x86\)/Git/ && curl -O https://gist.githubusercontent.com/magnusbae/2e6eeccdbb152099879c/raw/4bb0c07cea1e1e6e1e56527467f547804b218a66/install_nano.sh && chmod +x install_nano.sh && sh install_nano.sh
#Manual install procedures ##Download nano
Download the latest nano binary from here or use the following command:
curl -O http://www.nano-editor.org/dist/v2.2/NT/nano-2.2.6.zip
##Unpack nano to %git%/share/nano
My Git install dir is c:\Program Files (x86)\Git, in msysgit (run as administrator):
cd /c/Program\ Files\ \(x86\)/Git/share
mkdir nano
unzip ../nano-2.2.6.zip -d nano
##Create an executable for nano in %git%\bin
Assuming you are still in the share-folder
cd ../bin
vi nano
#paste the following:
#!/bin/sh
exec /share/nano/nano.exe "$@"
#Hit escape followed by:
:wq
chmod +x nano
Voilà, you are done! :)