all repos — archive/dotfiles @ d572253f235621e4575d9328232d76eefce20a0f

Superseded by nixfiles

zsh: Add historic word completion to M-Tab
Alan Pearce alan.pearce@spotcap.com
Thu, 14 Jul 2016 10:53:46 +0200
commit

d572253f235621e4575d9328232d76eefce20a0f

parent

d373f6e27091bde2553466a83766fc096982be9e

1 files changed, 4 insertions(+), 0 deletions(-)

jump to
M tag-zsh/config/zsh/zshrctag-zsh/config/zsh/zshrc
@@ -78,6 +78,10 @@ bindkey '\e^b' backward-argument bindkey '\e^f' forward-argument
 bindkey '\e^k' kill-argument
 
+zle -C hist-complete complete-word _generic
+zstyle ':completion:hist-complete:*' completer _history
+bindkey '\e	' hist-complete
+
 zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}' '+m:{A-Z}={a-z}'
 zstyle ':completion:*' completer _expand _complete _match