Re: CentOS and Bash History

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Fri, Feb 19, 2010 at 12:30 PM, Robert Spangler
<mlists@xxxxxxxxxxxxxxxx> wrote:
> Hi,
>
> I was wondering if bash or inputrc has changed form CentOS v4 to CentOS v5?
> Reason I ask is at the bash cli I can type, for example 'su' and then with
> the up and down arrows I can scroll through my history and will only see the
> commands that begin with 'su'.  In CentOS 5 this isn't the case.
>
> I have added some code to my inputrc file to make this work in CentOS 4 as
> follows:
>
> # Search History for previous used commands
> "\M-[A":history-search-backward
> "\M-[B":history-search-forward
> "\M-[C":forward-char
> "\M-[D":backward-char
>
> And this works well in CentOS 4 but I cannot get it to work in CentOS 5.
> Anyone know why or what I have to change?
>
You might try doing: bind -P|grep history

Not sure which option it is, but you can try binding each entry until
you find the one that does what you're looking for.
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux