summary refs log tree commit diff stats
path: root/tag-zsh/config/zsh
diff options
context:
space:
mode:
authorAlan Pearce2016-07-14 10:53:46 +0200
committerAlan Pearce2016-07-14 10:53:46 +0200
commitd572253f235621e4575d9328232d76eefce20a0f (patch)
treefc89779f3ceec1f872c165ed2cf7424122af15db /tag-zsh/config/zsh
parentd373f6e27091bde2553466a83766fc096982be9e (diff)
downloaddotfiles-d572253f235621e4575d9328232d76eefce20a0f.tar.lz
dotfiles-d572253f235621e4575d9328232d76eefce20a0f.tar.zst
dotfiles-d572253f235621e4575d9328232d76eefce20a0f.zip
zsh: Add historic word completion to M-Tab
Diffstat (limited to 'tag-zsh/config/zsh')
-rw-r--r--tag-zsh/config/zsh/zshrc4
1 files changed, 4 insertions, 0 deletions
diff --git a/tag-zsh/config/zsh/zshrc b/tag-zsh/config/zsh/zshrc
index 6e034e9..3879f6a 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