ubuntu下如何设置PageUp/PageDown键调出使用过的历史命令

vi /etc/inputrc 

大约在第40行,找到page up page down的用法,去掉前面的#号,重启终端即可

40 # alternate mappings for "page up" and "page down" to search the history
41  "\e[5~": history-search-backward

42  "\e[6~": history-search-forward

posted @ 2022-03-09 15:06  冲向云霄1998  阅读(516)  评论(0编辑  收藏  举报