projects
/
grml-etc-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e3d86cc
)
zshrc: complete word from history with menu using ctrl-x ctrl-x
author
Bernhard Tittelbach
<bernhard@tittelbach.org>
Wed, 20 Jul 2011 16:47:04 +0000
(18:47 +0200)
committer
Michael Prokop
<mika@grml.org>
Thu, 21 Jul 2011 09:18:14 +0000
(11:18 +0200)
etc/zsh/zshrc
patch
|
blob
|
history
diff --git
a/etc/zsh/zshrc
b/etc/zsh/zshrc
index
0977409
..
6fa7fcb
100644
(file)
--- 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