Emulating tcsh history-search in bash

I'm really comfortable with the way tcsh is able to handle backward and forward searches in command history.
Is there a way of emulate this using the bash shell? I don't like the behavior of ^R.

This is how I use it in tcsh
Code:
bindkey -k up history-search-backward
bindkey -k down history-search-forward
 
arapaima said:
Is there a way of emulate this using the bash shell? I don't like the behavior of ^R.

Drop it
Code:
bind '"\e[A": history-search-backward'
bind '"\e[B": history-search-forward'

to the bash_profile or the same without bind to the .inputrc in home user's directory.
 
Back
Top