开发者

Reverse incremental search in Cshell

I am usin开发者_JAVA百科g 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.


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜