輸入前幾個字母,用箭頭就能找出開頭字母相同的歷史命史

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

 

在 .inputrc(若是該文件不存在,則建立一個)中加入下列內容:ubuntu

"\e[A": history-search-backward
"\e[B": history-search-forward
set show-all-if-ambiguous on
相關文章
相關標籤/搜索