close
紀錄一下工作上的一些Ubuntu OS使用的技巧
嗚邦兔小姿勢: How to make history-search-backward/forward working
Edit /etc/inputrc
Then unmask the two line
"[5~": history-search-backward "[6~": history-search-forward |
驗證可行: Ubuntu 18.04.x LTS
# typing the beginning of a previous command then
# PgUp/PgDw cycles trough history only for matching entries
"[5~": history-search-backward # Previous
"[6~": history-search-forward # Next
Note: Ask Ubuntu網站,大多數提供的方法是 編輯~/.inputrc 或是 編輯~/.bashrc 但是在Ubuntu 18.04.x LTS 沒有作用
,增加
## arrow up "\e[A":history-search-backward ## arrow down "\e[B":history-search-forward |
文章標籤
全站熱搜