]> git.donarmstrong.com Git - zsh.git/commitdiff
customise some bindings from the guide
authormartin f. krafft <madduck@madduck.net>
Sun, 11 May 2008 16:00:50 +0000 (17:00 +0100)
committermartin f. krafft <madduck@madduck.net>
Sun, 11 May 2008 16:00:50 +0000 (17:00 +0100)
.zsh/zshrc/80_bindkeys

index 999d2db64ed5f33789217888099cf63cdb28049a..5bc0c20c1f53acc27f690923672ddd27aae376c3 100644 (file)
@@ -14,4 +14,14 @@ bindkey -e
 # history expansion on pressing space
 bindkey ' ' magic-space
 
+# prefix search (up to cursor position)
+bindkey '^xp' history-beginning-search-backward
+bindkey '^xn' history-beginning-search-forward
+
+# repeat the previous shell-word ($WORDCHARS)
+bindkey '\e=' copy-prev-shell-word
+
+# allow for better ad-hoc multiline editing
+bindkey '\eq' push-line-or-edit
+
 # vim:ft=zsh