你最喜欢的贝壳技巧是什么?是什么让你的日常命令行使用起来更容易?
我的,对于 bash:
将此添加到您的主目录中的 .inputrc 文件中:
"\e[A": history-search-backward "\e[B": history-search-forward
现在,当您在提示符下开始键入时,箭头键将在您的历史记录中搜索以您已经键入的内容开头的任何其他命令。
unix shell bash
bash ×1
shell ×1
unix ×1