From 2750d82df14f75c80bedf50d1cbbf452783ce050 Mon Sep 17 00:00:00 2001 From: Xevion Date: Thu, 7 Nov 2024 15:19:17 -0600 Subject: [PATCH] Add bitwarden autocompletions to zshrc --- home/dot_zshrc.tmpl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/home/dot_zshrc.tmpl b/home/dot_zshrc.tmpl index 0d373dc..2eaf9ff 100644 --- a/home/dot_zshrc.tmpl +++ b/home/dot_zshrc.tmpl @@ -28,5 +28,10 @@ plugins=(git asdf yarn golang sudo zoxide bun node npm zsh-autosuggestions brew source $ZSH/oh-my-zsh.sh [[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh # configure with `p10k configure` +if type -P bw; then + eval "$(bw completion --shell zsh); compdef _bw bw;" +fi + {{ template "scripts/commonrc.sh.tmpl" dict "data" . "shell" "zsh" }} + {{ completion "zsh" }} \ No newline at end of file