输入前几个字母,用箭头就能找出开头字母相同的历史命史

参考:http://forum.ubuntu.org.cn/viewtopic.php?f=28&t=104120

在 .inputrc(如果该文件不存在,则创建一个)中加入下列内容:

"e[A": history-search-backward
"e[B": history-search-forward
set show-all-if-ambiguous on
原文地址:https://www.cnblogs.com/lance-ehf/p/5773592.html