Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add binding for history search from current command.

  • Loading branch information...
commit 0b25738e68b9902b611632d3210a1c2964fce1b7 1 parent a984a2b
@emmanuel authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 bash.d/misc_config.sh
View
4 bash.d/misc_config.sh
@@ -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'
Please sign in to comment.
Something went wrong with that request. Please try again.