editor

Changing the default editor in FreeBSD

To change your default editor, create and edit the file called .bash_profile in the /root directory:
Edit the EDITOR variable.
  1. # .bash_profile
  2. # Get the aliases and functions
  3.  
  4. if [ -f ~/.bashrc ]; then
  5. . ~/.bashrc
  6. fi
  7.  
  8. # User specific environment and startup programs
  9.  
  10. PATH=$PATH:$HOME/bin
  11.  
  12. export PATH
  13. unset USERNAME
  14. export EDITOR=nano
Syndicate content