From: Bernhard Tittelbach Date: Wed, 20 Jul 2011 16:47:04 +0000 (+0200) Subject: zshrc: complete word from history with menu using ctrl-x ctrl-x X-Git-Tag: v0.4.00~21 X-Git-Url: http://git.grml.org/?p=grml-etc-core.git;a=commitdiff_plain;h=cecd56bf166cb994905729823efeb0f8064aeec4 zshrc: complete word from history with menu using ctrl-x ctrl-x --- diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index 0977409..6fa7fcb 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -960,6 +960,12 @@ zle -N jump_after_first_word bindkey '^x1' jump_after_first_word +# complete word from history with menu (from Book: ZSH, OpenSource-Press) +zle -C hist-complete complete-word _generic +zstyle ':completion:hist-complete:*' completer _history +#k# complete word from history with menu +bindkey "^X^X" hist-complete + # }}} # {{{ history