Open your .bashrc file and add the line export EDITOR=vim or do;
echo 'export EDITOR=vim' >> ~/.bashrc
Then logout and back in or source .bashrc
If this doesn't work, try adding it to .bash_profile or do;
echo 'export EDITOR=vim' >> ~/.bash_profile
and then again, logout and back in or do source .bash_profile
NOTE: We can test using echo $EDITOR
I think on is fine for when at the console and the other for remote sessions, maybe...
No comments:
Post a Comment
Note: only a member of this blog may post a comment.