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

arrow
arrow
    創作者介紹
    創作者 吾給力 的頭像
    吾給力

    吾給力的部落格

    吾給力 發表在 痞客邦 留言(0) 人氣()