Install Nano with Homebrew

brew install nano

installs nano. Add to “~/.zshrc”:

alias nano="$(brew --prefix nano)/bin/nano"

Nano has modern command line options and features enabled by nano --modernbindings.

On most Unix-like systems this build script builds Nano from source.