If you like nano and miss it on windows, here is how you can make it work under git bash on Windows. First of all you need to download the compiled binaries (tar-zipped) from GNU nano site, e.g.:

$ curl -L -O https://www.nano-editor.org/dist/v2.8/nano-2.8.6.tar.gz

Unpack it somewhere to a folder called nano. Move that folder to the user share folder under git bash, on my machine that would be:

C:\Program Files\Git\usr\share\{nano} <- new folder with unpacked content

Last thing to do is to create calling script, called simply nano (note: no extension!) and place it somewhere on your path e.g. ‘~/bin’ folder, with following content:

exec /usr/share/nano/nano.exe "$@"

Now restart git bash if it was running and try it out by simply typing nano.

Leave a Reply

Your email address will not be published. Required fields are marked *