summaryrefslogtreecommitdiffstats
path: root/.zshrc
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xssn.at>2009-09-08 19:37:56 +0200
committerFlorian Pritz <bluewind@xssn.at>2009-09-08 19:37:56 +0200
commite2d2ac0fbc4a6899c5d5c42bfca41450d8ec2da3 (patch)
tree607238a94c8fc82124bdfa62f33134da1c748909 /.zshrc
parentc3ec2a49a89233234036137860a2b7a1c5d54b80 (diff)
downloaddotfiles-e2d2ac0fbc4a6899c5d5c42bfca41450d8ec2da3.tar.gz
dotfiles-e2d2ac0fbc4a6899c5d5c42bfca41450d8ec2da3.tar.xz
only browse history if command matches
Signed-off-by: Florian Pritz <bluewind@xssn.at>
Diffstat (limited to '.zshrc')
-rw-r--r--.zshrc3
1 files changed, 3 insertions, 0 deletions
diff --git a/.zshrc b/.zshrc
index bb303e9..4b25a38 100644
--- a/.zshrc
+++ b/.zshrc
@@ -65,6 +65,9 @@ bindkey '\e[3~' delete-char
bindkey '\e[2~' overwrite-mode
bindkey "^[[7~" beginning-of-line # Pos1
bindkey "^[[8~" end-of-line # End
+bindkey "^[[A" history-search-backward
+bindkey "^[[B" history-search-forward
+
# HOWTO make your own:
# bindkey '<crtl+alt+key>' <action> (do this in a shell)
# for some actions run `bindkey`