Use lookpath for bitwarden client

This commit is contained in:
2024-11-07 19:47:21 -06:00
parent 5a4b35c5c0
commit 5eb188f79f

View File

@@ -28,9 +28,7 @@ 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
{{ if lookPath "bw" -}} eval "$(bw completion --shell zsh); compdef _bw bw;" {{ end }}
{{/* Common shared aliases, scripts, & shell setup details. */ -}}
{{ template "scripts/commonrc.sh.tmpl" dict "data" . "shell" "zsh" }}