Sethu
Sethu

Reputation: 566

Reverse incremental search in Cshell

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.

Thanks.

Upvotes: 3

Views: 1790

Answers (1)

Keith Thompson
Keith Thompson

Reputation: 263237

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.

Upvotes: 5

Related Questions