Colours in nano

I am writing most of my bash script with nano editor. If one want to get colours in nano, on can do:

locate *.nanorc

which will give a list of what is available on your system:

Now, you can do:

nano -w ~/.nanorc

and add your prefered styling.

Since I am happy with bash, I would add:
include /usr/share/nano/sh.nanorc
to my file.
Read more here:

See blow how it looks like on my computer:

colours in nano

The text below is what I wrote a couple of years ago, but I keep just in case.


Some might remember the editor ‘pico’, today most people know it as ‘nano’.

Have you missed sometime to have colour highlighting when editing bash and php scripts with nano? Here are two interesting projects:


nano editor with colours

Leave a Reply

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