Every time I login to ssh terminal to edit files I execute the command
export EDITOR=nanoHow Could I set nano as default editor so I shouldn't execute this command anymore
11 Answer
- Remove the spaces around the
=; that syntax is invalid. - Put the line into
~/.bashrc(assuming you use the Bash shell).