Apply patch from issue350
[grml-etc-core.git] / etc / zsh / zshrc
index d7f98e3..95c910a 100644 (file)
@@ -412,6 +412,12 @@ bindkey '^Xi' insert-unicode-char
 #  bindkey . rationalise-dot
 
 #  bindkey '\eq' push-line-or-edit
+  
+# use the vi navigation keys (hjkl) besides cursor keys in menu selection
+  bindkey -M menuselect 'h' vi-backward-char                # left
+  bindkey -M menuselect 'k' vi-up-line-or-history           # up
+  bindkey -M menuselect 'l' vi-forward-char                 # right
+  bindkey -M menuselect 'j' vi-down-line-or-history         # bottom
 # }}}
 
 # power completion - abbreviation expansion {{{