Browse Source

history-search-backward

Tom 12 năm trước cách đây
mục cha
commit
0e84f0bb19
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  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