setting options in bash

Kevin Buettner kev@primenet.com
Sun, 30 Apr 2000 22:04:48 -0700


On Apr 30,  8:34pm, The Wolf wrote:

> basically I want bash to behave like ksh with vi as a line editor
> I am using following command:
> $ set -o vi
> 
> to set the vi as an editor.
> 
> I have tried to put this in the .bashrc file but I do not
> get the result as with the command executed from the prompt.
> 
> Is there a way to automate the process of setting the
> command editing without me typing it every time I log in??

Put the following line in ~/.inputrc:

set editing-mode vi

If that doesn't work, it could be that you need to comment out
the following line in /etc/profile:

INPUTRC=/etc/inputrc

(I've found that I need to do this on my Red Hat systems.)

Kevin

-- 
Kevin Buettner
kev@primenet.com, kevinb@redhat.com