for cmd shell you can just use Chocolatey and type
$ cinst nano
- If you missed my protip on Chocolatey check it out
For git bash
you can go the gnu nano homepage and download the
WinNT/9x binary, .zip format.
its near the bottom on the left currently.
or just type in a cmd or git bash shell
$ curl -L -O http://www.nano-editor.org/dist/v2.2/NT/nano-2.2.6.zip
then unzip the file using
$ unzip nano-2.2.6.zip -d nano
$ mv nano ~/path/to/git/share
and then type
echo ' with an open single quote then you can hit
enter and get a carriage return then write each line of the file. at the end close with the
> fileName ... almost there!
echo ' >#!/bin/sh >exec /share/nano/nano.exe "$@" >' > nano
Make sure to save this file with no extension. JUST
- Then move the
nanoshell script you made to somewhere on your path. You can make a
/binfolder in your root and place add it to your path.
$ mv nano ~/bin
Then you can call this script from git bash using just
- Restart your shell session and type
$ nano fileName
- and Rejoice with the new ability of nano-power from git bash. Hooray!