LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Changing default editor (https://www.linuxquestions.org/questions/linux-software-2/changing-default-editor-270527/)

Tony Empire 12-26-2004 01:20 PM

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?

Linux~Powered 12-26-2004 02:04 PM

I think it's...

Code:

set -o vi

slakmagik 12-26-2004 03:31 PM

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.

Tony Empire 12-26-2004 07:29 PM

as the root user, which file could I update to change the default editor for all users?

slakmagik 12-26-2004 07:35 PM

Depends on how they're set up in RH, but /etc/profile should do it.

Tony Empire 12-27-2004 12:45 PM

got it. thanks


All times are GMT -5. The time now is 06:22 AM.