LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-25-2003, 04:21 AM   #1
delstel
LQ Newbie
 
Registered: Aug 2003
Posts: 12

Rep: Reputation: 0
How to set $editor


How do I set the environmental variable $EDITOR to a different default editor.
 
Old 08-25-2003, 04:31 AM   #2
jalal
Member
 
Registered: Aug 2003
Location: .bh
Distribution: Gentoo
Posts: 188

Rep: Reputation: 30
bash$ export EDITOR='your editor'
 
Old 08-25-2003, 04:38 AM   #3
delstel
LQ Newbie
 
Registered: Aug 2003
Posts: 12

Original Poster
Rep: Reputation: 0
where do I find bash$
 
Old 08-25-2003, 04:54 AM   #4
jalal
Member
 
Registered: Aug 2003
Location: .bh
Distribution: Gentoo
Posts: 188

Rep: Reputation: 30
you don't need to find it, it is there (almost all the time)

I was just referring to the prompt.

just try the export part.
 
Old 08-25-2003, 05:02 AM   #5
delstel
LQ Newbie
 
Registered: Aug 2003
Posts: 12

Original Poster
Rep: Reputation: 0
figured it out -

this just seems to set it for the session

How do I make it Permanent
 
Old 08-25-2003, 05:18 AM   #6
jalal
Member
 
Registered: Aug 2003
Location: .bh
Distribution: Gentoo
Posts: 188

Rep: Reputation: 30
add it to either your $HOME/.bashrc ( for your user )

or to /etc/profile ( for all users )
 
Old 08-25-2003, 05:33 AM   #7
delstel
LQ Newbie
 
Registered: Aug 2003
Posts: 12

Original Poster
Rep: Reputation: 0
Got it - thanks!
 
  


Reply



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
Cannot set LD_LIBRARY_PATH in .cshrc (able to set other env variables) senthilpr_in Linux - Newbie 4 02-26-2007 12:46 PM
Set the path systemwide/Set the path for a user with Slackware jayhel Slackware 1 06-12-2005 12:24 AM
xfree86 set to 0. It should be set to -10. jimsac Linux - Newbie 0 05-22-2004 06:08 AM
VI Editor rakriege Linux - General 2 02-04-2004 07:57 PM
How to view set-user-ID and set-group-ID Xris718 Linux - General 7 01-10-2004 01:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:37 PM.

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