Register
It is currently Thu Nov 27, 2014 3:20 am

.bashrc export EDITOR=


All times are UTC - 6 hours


Post new topic Reply to topic  [ 2 posts ] 
Author Message
 PostPosted: Thu Mar 30, 2006 10:53 am   
Site Admin
User avatar

Joined: Sun May 15, 2005 9:36 pm
Posts: 673
Location: Des Moines, Iowa
.bash_rc export EDITOR=

If you change the default editor in your .bashrc file, when you use $EDITOR in your script, your favorite editor will then be used. I modified mine to use pico..... much to jbsnakes dismay :lol: :lol:

Code:
# Some applications read the EDITOR variable to determine your favourite text
# editor. So uncomment the line below and enter the editor of your choice :-)
#export EDITOR=/usr/bin/vim
export EDITOR=/usr/bin/pico


Top
 Profile WWW  
 PostPosted: Tue Jan 15, 2008 7:32 pm   
User avatar

Joined: Tue Jan 15, 2008 7:17 pm
Posts: 1
Location: Central GA, USA
Does anyone know what the path is to the actual $EDITOR-setting file in OSX? I'm running Tiger, under which the .profile apparently isn't it. I used the following in my .profile:

export EDITOR=/usr/bin/emacs

but when I type something like "edit foo", foo opens up in TextWrangler...
The awkward thing is that I seem to recall having *SET* it to be TextWrangler somewhere before.
(I was probably following a tutorial that did something like that long ago, and lost track of where the file lives...)

I don't know much about the hierarchy of which files are evaluated in what order as bash loads...

:?


Top
 Profile WWW YIM  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  


BashScripts | Promote Your Page Too
Powered by phpBB © 2011 phpBB Group
© 2003 - 2011 USA LINUX USERS GROUP