Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我喜欢 borne shell 中的这个快捷方式,并想知道是否可以在 csh 或 tsch 中模拟和/或拥有(可能安装附加组件或使用脚本)它
谢谢
尝试
bindkey "^R" i-search-back
csh、tcsh 甚至 bash 都有的东西很酷!历史替代。
这将运行最后一个以 开头的命令cc:
cc
% !cc
这提供了最后一个命令的参数:
% cc !*
这会找到最后一个以它开头的命令cc并替换它的参数:
% g++ !cc:*
这将找到其中包含hello.c任何位置的最后一个命令:
hello.c
% !?hello.c