help-gnu-utils
[Top][All Lists]
Advanced

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

Re: BASH history


From: Konstantin Shemyak
Subject: Re: BASH history
Date: Wed, 05 May 2004 06:39:57 GMT
User-agent: slrn/0.9.7.4 (Linux)

On Tue, 04 May 2004 23:54:48 +0100, Richard Revis <gentoo@revis.org> wrote:
[skip] 
>  $ ssh <press up>
>  
>  to return the last command that started with ssh 

Yes, it is possible. Put in your .bashrc:

bind '"\C-[[A": history-search-backward'
bind '"\C-[[B": history-search-forward'

Here, [[A and ]]B are what your terminal generates for up/down arrows.

Konstantin.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]