|
|
|
05-07-1999, 04:27 PM
|
Postid: 38067
|
|
Site Owner
Join Date: Dec 1998
Location: oakland, ca, usa
Posts: 138
|
Command Line Editor
I would like to use VI as my command line editor.
How do I modify .bash_profile to achieve this?
------------------
guitartricks.com
|
|
|
05-07-1999, 04:36 PM
|
Postid: 38068
|
|
Registered User
Join Date: Apr 1999
Posts: 25
|
export EDITOR=vi
|
|
|
05-07-1999, 05:13 PM
|
Postid: 38069
|
|
Site Owner
Join Date: Dec 1998
Location: oakland, ca, usa
Posts: 138
|
I added
export EDITOR=vi
to .bash_profile
but it didn't work. Was I supposed to put a semicolon
after it or something?
|
|
|
05-07-1999, 06:18 PM
|
Postid: 38070
|
|
CTO FutureQuest, Inc.
Join Date: Jun 1998
Location: Z'ha'dum
Posts: 8,108
|
did you logout and log back in?
also try:
export EDITOR=/bin/vi
--
Terra
--Only thing Windows did right was create notepad--
FutureQuest
[This message has been edited by ccTech (edited 05-07-99)]
|
|
|
05-13-1999, 03:37 PM
|
Postid: 38071
|
|
Site Owner
Join Date: Dec 1998
Location: oakland, ca, usa
Posts: 138
|
Unfortunately, when I changed .bash_profile to read
EDITOR=/bin/vi
I still didn't get vi as my command line editor. Even after
I logged off and logged back on.
Do I need to put it in a particular place in .bash_profile?
Right now it is the last line. Number 14.
Thanks,
jon
------------------
guitartricks.com
|
|
|
05-14-1999, 02:39 AM
|
Postid: 38072
|
|
CTO FutureQuest, Inc.
Join Date: Jun 1998
Location: Z'ha'dum
Posts: 8,108
|
did you export the variable?
--
Terra
sysAdmin
FutureQuest
|
|
|
05-14-1999, 06:24 PM
|
Postid: 38074
|
|
CTO FutureQuest, Inc.
Join Date: Jun 1998
Location: Z'ha'dum
Posts: 8,108
|
I just logged in as you and tested it...
It's working as expected...
to test:
$crontab -e
It uses the EDITOR variable to find out which editor to use and it pulls up vi...
--
Terra
sysAdmin
FutureQuest
|
|
|
05-15-1999, 12:39 AM
|
Postid: 38073
|
|
Site Owner
Join Date: Dec 1998
Location: oakland, ca, usa
Posts: 138
|
Yes, I did. Sorry that wasn't clear.
export EDITOR=/bin/vi
is what it says.
Jon
------------------
guitartricks.com
|
|
|
05-16-1999, 10:44 PM
|
Postid: 38075
|
|
Site Owner
Join Date: Dec 1998
Location: oakland, ca, usa
Posts: 138
|
When I run that command from my id I get the following
[jbroder@FQ-Taz:~/www ]$ $crontab -e
bash: -e: command not found
[jbroder@FQ-Taz:~/www ]$
So maybe there is something fishy here...
------------------
guitartricks.com
|
|
|
05-16-1999, 10:58 PM
|
Postid: 38076
|
|
Registered User
Join Date: Jan 1999
Location: Kissimmee, FL
Posts: 3,672
|
Don't type the <font color=#FF0000>$</font> 
------------------
Justin Nelson
FutureQuest Support
|
|
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 visitors)
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -4. The time now is 12:24 AM.
|
| |
|
|
|