setting options in bash

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: KevinBuettnerkev@primenet.com
Date:  
Subject: setting options in bash
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
,