diff options
author | Alan Pearce | 2016-07-14 10:53:46 +0200 |
---|---|---|
committer | Alan Pearce | 2016-07-14 10:53:46 +0200 |
commit | d572253f235621e4575d9328232d76eefce20a0f (patch) | |
tree | fc89779f3ceec1f872c165ed2cf7424122af15db /tag-zsh/config/zsh | |
parent | d373f6e27091bde2553466a83766fc096982be9e (diff) | |
download | nixfiles-d572253f235621e4575d9328232d76eefce20a0f.tar.lz nixfiles-d572253f235621e4575d9328232d76eefce20a0f.tar.zst nixfiles-d572253f235621e4575d9328232d76eefce20a0f.zip |
zsh: Add historic word completion to M-Tab
Diffstat (limited to 'tag-zsh/config/zsh')
-rw-r--r-- | tag-zsh/config/zsh/zshrc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tag-zsh/config/zsh/zshrc b/tag-zsh/config/zsh/zshrc index 6e034e9e..3879f6a0 100644 --- a/tag-zsh/config/zsh/zshrc +++ b/tag-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 |