Friday, May 22, 2015

shell - Set nano as a default editor over Vim



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


Answer




  1. Remove the spaces around the =; that syntax is invalid.

  2. Put the line into ~/.bashrc (assuming you use the Bash shell).


No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...