Thursday, January 10, 2008

Changing the Default editor for your terminal

You can change the default editor by setting the EDITOR environment variable. In BASH. This default editor is most of the time invoked by -e switch.
To see what is the current EDITOR.
# set | grep EDITOR EDITOR=/bin/nano # which vi (shows the full path of (shell) command vi ) /usr/bin/vi # export EDITOR=/usr/bin/vi verify the current EDITOR # set | grep EDITOR EDITOR=/usr/bin/vi  
--  Regards,  Mubbashir