LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-26-2004, 02:20 PM   #1
Tony Empire
LQ Newbie
 
Registered: Nov 2004
Location: Long Island, NY
Distribution: Redhat 9
Posts: 17

Rep: Reputation: 0
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?
 
Old 12-26-2004, 03:04 PM   #2
Linux~Powered
Member
 
Registered: Jan 2004
Location: /lost+found
Distribution: Slackware 14.2
Posts: 849

Rep: Reputation: 33
I think it's...

Code:
set -o vi
 
Old 12-26-2004, 04:31 PM   #3
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
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.
 
Old 12-26-2004, 08:29 PM   #4
Tony Empire
LQ Newbie
 
Registered: Nov 2004
Location: Long Island, NY
Distribution: Redhat 9
Posts: 17

Original Poster
Rep: Reputation: 0
as the root user, which file could I update to change the default editor for all users?
 
Old 12-26-2004, 08:35 PM   #5
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
Depends on how they're set up in RH, but /etc/profile should do it.
 
Old 12-27-2004, 01:45 PM   #6
Tony Empire
LQ Newbie
 
Registered: Nov 2004
Location: Long Island, NY
Distribution: Redhat 9
Posts: 17

Original Poster
Rep: Reputation: 0
got it. thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
changing default editor zyphonic Linux - General 8 11-14-2005 08:35 AM
Trouble changing default editor downinthemine Linux - Software 4 12-11-2003 04:48 PM
default editor RedHat 9.0 ner Linux - Newbie 1 11-17-2003 03:07 PM
setting up your default editor tarballed Linux - Newbie 2 08-19-2003 03:30 PM
Changing default test editor in redhat 7.1 jgharagozlou Linux - Newbie 2 10-04-2001 01:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:53 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration