From cecd56bf166cb994905729823efeb0f8064aeec4 Mon Sep 17 00:00:00 2001 From: Bernhard Tittelbach Date: Wed, 20 Jul 2011 18:47:04 +0200 Subject: [PATCH] zshrc: complete word from history with menu using ctrl-x ctrl-x --- etc/zsh/zshrc | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- 2.1.4