Take the 2-minute tour ×

I am using Cshell at the office, and it does not seem to have reverse incremental search for history. Is there any way to enable reverse-i-search (like the one in bash) in cshell.


share|improve this question
add comment

1 Answer

up vote 4 down vote accepted

I presume you're using tcsh (csh doesn't have much in the way of history search at all).

You can bind the command i-search-back to some key (it's not bound by default). It seems to be similar to bash's reverse-i-search.

See the description in the tcsh man page.

For example, I have

bindkey ^X/ i-search-back

in my $HOME/.cshrc.

share|improve this answer
If you prefer using bash, you can probably change your default shell. man chsh. Or you can probably just invoke bash -l from your [t]csh prompt. –  Keith Thompson Nov 15 '11 at 23:41
add comment

Your Answer


