Nano config

September 12, 2022

If you don't have time to learn Vim (vi), nano remains your best option inside the terminal.

You can customize your version of nano by editing ~/.nanorc. Here is an example :

set tabsize 4
set tabstospaces
set autoindent
set trimblanks
set linenumbers
set constantshow
set keycolor cyan
set functioncolor cyan
set numbercolor yellow
set mouse
include "/opt/homebrew/share/nano/*.nanorc"

If you're on MacOS, the default version of nano is quite old, you can use the latest version by running the following command :

brew install nano

Profile picture

Written by Olivier Bonnet who lives and works in Montreal writing a blog that nobody reads 🤪...

© Bonneto 2024