set default editor in linux


/ Published in: Bash
Save to your folder(s)

Examples
add that line to $HOME/.bashrc to have a permanent change


Copy this code and paste it in your HTML
  1. #vi
  2. export EDITOR="vi"
  3.  
  4. #nano
  5. export EDITOR="nano"

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.