Changing default editor
Redhat 9
I want to change my default text editor from vi to pico. When I look in the .bash_profile or .bashrc I do not see the EDITOR variable. So how do I change the default permanently? |
I think it's...
Code:
set -o vi |
That changes the keybindings for the command line.
Just add export EDITOR="pico" to your bash configs. If it was there, you'd need to change it but, if not, just add it. |
as the root user, which file could I update to change the default editor for all users?
|
Depends on how they're set up in RH, but /etc/profile should do it.
|
got it. thanks
|
All times are GMT -5. The time now is 06:22 AM. |