[CLUE-Tech] vi form of command history editor in bash?

Jed S. Baer thag at frii.com
Tue Dec 18 22:25:17 MST 2001


On Tue, 18 Dec 2001 21:56:34 -0700
"Todd A. Gibson" <tgibson at augustcouncil.com> wrote:

> Question:  With RedHat, around about version 5.2 or 6.0, I found that
> bash doesn't default with vi bindings.  I have to type 'set -o vi'
> to get the bindings.  The rub is that I can't automate this by
> putting 'set -o vi' in .bashrc or something similar.  Therefore
> everytime I open a new terminal window, I have to manually
> get the shell to recognize the vi bindings.
> 1) Does anyone else have this problem?
> 2) Is there a solution to this problem?

OK, it seems obvious, but have you tried putting it in .bash_profile ?
Yeah, I know, the default .bash_profile sources .bashrc, so that shouldn't
matter. Only thing I can think of, short of putting it in /etc/profile,
but I can't think of why that would work if .bashrc doesn't.

Very strange, mon.

-- 
"Those who expect to reap the blessings of freedom must, like men,
 undergo the fatigue of supporting it."
 - Thomas Paine



More information about the clue-tech mailing list