brew install nano
alias nano='/usr/local/bin/nano'
source ./zshrc
Open/create nano ~/.nanorc
and add some settings
set tabsize 4
set tabstospaces
set autoindent
set trimblanks
set linenumbers
set constantshow
set titlecolor white,red
set keycolor cyan
set functioncolor cyan
set numbercolor yellow
set mouse
include /usr/local/share/nano/*.nanorc