It is currently Mon, 18 Mar 2024 16:55:31 GMT



 
Author Message
 Command Line/History Editor??
I have BASH set as my shell. However, when I put the command "set -o
vi" in the .profile file or if I type it in directly at a command
prompt, I still cannot use vi as the command editor. The strange thing
is that if I spawn another shell by typing in "bash" and then type in
the "set -o vi" command, it will at that point set vi as the command
editor.

Any suggestions? I am running RedHat 6.1. The problem exists for any
user I log on as.

Thanks!
-w



 Sun, 09 Jun 2002 03:00:00 GMT   
 Command Line/History Editor??

Just checking to make certain you didn't make a typo here.  Are you
certain you are putting the set -o vi in the .bash_profile or .bashrc
file?



 Mon, 10 Jun 2002 03:00:00 GMT   
 Command Line/History Editor??
Either file doesn't matter. I can't even type it in directly at the
command prompt and get it to work.

On Thu, 23 Dec 1999 00:43:13 +0000, Opinionated



 Mon, 10 Jun 2002 03:00:00 GMT   
 Command Line/History Editor??
Try     export VISUAL=vi     in .bash_profile  or   .profile

--
The warrenty and liability expired as you read the message.
If the above breaks your system, it's yours and you keep both pieces.
Do a,  man every_command_here, before doing anything else.
Backup every file before you change it.



 Tue, 11 Jun 2002 03:00:00 GMT   
 Command Line/History Editor??

Replace the contents of /etc/inputrc with a single line "set editing-mode vi".

Norman



 Wed, 12 Jun 2002 03:00:00 GMT   
 Command Line/History Editor??
Hi,

Don't change /etc/inputrc because another user may like Emacs mode
and will have the problem then.

o Edit /etc/profile,  right after the following two lines
  INPUTRC=/etc/inputrc
  export PATH PS1 HOSTNAME HISTSIZE HISTFILESIZE USER LOGNAME MAIL INPUTRC

  add the line
  unset INPUTRC

  It's not good to set these things in /etc/profile anyway.
  You can delete the file /etc/inputrc if you like.

o Create a file named .inputrc in your home containing the following

  set editing-mode vi

o chmod 600 .inputrc

Don't do any set -o vi anywhere.
If you are in a Gnome session, logout and login.
Now your bash will have vi editing mode.
Ignore the file /etc/inputrc, bash takes ~/.inputrc by default.



 Fri, 14 Jun 2002 03:00:00 GMT   
 
   [ 6 post ] 

Similar Threads

1. Command Line/History Editor??

2. rememeber history of tcshell command line commands after reboot

3. How Do I Make Vi My Command History Editor

4. tab completion and command line history

5. bash command line history/editing

6. How to copy history to command line?

7. Looking for a command line history util

8. Command line history for programs (or atty)

9. Command line history.

10. ksh command line history


 
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software