Permalink
Browse files

Add binding for history search from current command.

  • Loading branch information...
1 parent a984a2b commit 0b25738e68b9902b611632d3210a1c2964fce1b7 @emmanuel committed Jul 30, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 bash.d/misc_config.sh
View
@@ -15,3 +15,7 @@ shopt -s cdable_vars
# values of LINES and COLUMNS.
shopt -s checkwinsize
+# Start typing a command at a shell prompt, then hit up/down for history search
+# using the inputted text as the beginning of the search string
+bind '"\e[A": history-search-backward'
+bind '"\e[B": history-search-forward'

0 comments on commit 0b25738

Please sign in to comment.