sudo vi /etc/inputrc
大约在第40行,找到"page up" and "page down"的用法,去掉前面的#号,重启终端即可:
40 # alternate mappings for "page up" and "page down" to search the history
41 "\e[5~": history-search-backward42 "\e[6~": history-search-forward
sudo vi /etc/inputrc
大约在第40行,找到"page up" and "page down"的用法,去掉前面的#号,重启终端即可:
40 # alternate mappings for "page up" and "page down" to search the history
41 "\e[5~": history-search-backward42 "\e[6~": history-search-forward