Set nano as a default editor over Vim
17,460
- Remove the spaces around the
=
; that syntax is invalid. - Put the line into
~/.bashrc
(assuming you use the Bash shell).
Related videos on Youtube
Author by
iLinux85
Updated on September 18, 2022Comments
-
iLinux85 over 1 year
Every time I login to ssh terminal to edit files I execute the command
export EDITOR=nano
How Could I set nano as default editor so I shouldn't execute this command anymore
-
user1686 over 9 yearsHas been answered dozens of times: google.com/search?q=export+editor+default
-