monospace, Almost every Linux CLI tool that requires you to edit a file will consult the
EDITOR
environment variable to spawn the editor you prefer. So, if you want to usenano
instead ofvim
, simply set it as your default editor in your.bashrc
or.zshrc
:
export EDITOR=nano
Add comment