瀏覽代碼

history-search-backward

Tom 12 年之前
父節點
當前提交
0e84f0bb19
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      .bashrc

+ 4 - 0
.bashrc

@@ -16,6 +16,10 @@ alias ll='ls -alF'
 alias la='ls -A'
 alias l='ls -CF'
 
+# better back-searching
+bind '"\e[A": history-search-backward'
+bind '"\e[B": history-search-forward'
+
 # ssh coloring
 ssh() {
     if command ssh "$@"; then