8

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

Braiam
  • 4,709
  • 3
  • 26
  • 57
iLinux85
  • 275
  • 1
  • 2
  • 12

1 Answers1

9
  1. Remove the spaces around the =; that syntax is invalid.
  2. Put the line into ~/.bashrc (assuming you use the Bash shell).
Ingo Karkat
  • 22,638
  • 2
  • 45
  • 58