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:
parent
1e5813dc35
commit
be64bd88e8
5
.zshrc
5
.zshrc
@ -54,11 +54,16 @@ zstyle ':completion:*' rehash true
|
|||||||
zstyle :compinstall filename "$HOME/.zshrc"
|
zstyle :compinstall filename "$HOME/.zshrc"
|
||||||
|
|
||||||
autoload -U compinit ; compinit
|
autoload -U compinit ; compinit
|
||||||
|
autoload -U bashcompinit ; bashcompinit
|
||||||
|
|
||||||
plugins=(command-not-found history-substring-search sudo zsh-autosuggestions zsh-completions)
|
plugins=(command-not-found history-substring-search sudo zsh-autosuggestions zsh-completions)
|
||||||
source $ZSH/oh-my-zsh.sh
|
source $ZSH/oh-my-zsh.sh
|
||||||
source $ZSH/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
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=("${(@)ZSH_AUTOSUGGEST_CLEAR_WIDGETS:#(up|down)-line-or-history}")
|
||||||
ZSH_AUTOSUGGEST_CLEAR_WIDGETS+=(history-substring-search-up history-substring-search-down)
|
ZSH_AUTOSUGGEST_CLEAR_WIDGETS+=(history-substring-search-up history-substring-search-down)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user