1
0
mirror of https://github.com/frebib/dotfiles.git synced 2024-06-14 12:57:23 +00:00

zshrc: add gopass completion

This commit is contained in:
Joe Groocock 2017-10-10 10:59:25 +01:00
parent 1e5813dc35
commit be64bd88e8
Signed by: frebib
GPG Key ID: E0B16BEACFBB6A86

5
.zshrc
View File

@ -54,11 +54,16 @@ zstyle ':completion:*' rehash true
zstyle :compinstall filename "$HOME/.zshrc"
autoload -U compinit ; compinit
autoload -U bashcompinit ; bashcompinit
plugins=(command-not-found history-substring-search sudo zsh-autosuggestions zsh-completions)
source $ZSH/oh-my-zsh.sh
source $ZSH/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
if gopass --help &>/dev/null; then
source <(gopass completion bash)
fi
ZSH_AUTOSUGGEST_CLEAR_WIDGETS=("${(@)ZSH_AUTOSUGGEST_CLEAR_WIDGETS:#(up|down)-line-or-history}")
ZSH_AUTOSUGGEST_CLEAR_WIDGETS+=(history-substring-search-up history-substring-search-down)