Set the EDITOR and VISUAL environment variables to nano

If you use bash on macOS, this is easiest done by editing your ~/.bash_profile file and adding the two lines

export EDITOR=nano
export VISUAL="$EDITOR"