Search code examples
bashshellfull-text-searchtcshbash-completion

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.


Solution

  • 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.