From 5eb188f79f5ad24e8573335e93605a2d94a21333 Mon Sep 17 00:00:00 2001 From: Xevion Date: Thu, 7 Nov 2024 19:47:21 -0600 Subject: [PATCH] Use lookpath for bitwarden client --- home/dot_zshrc.tmpl | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/home/dot_zshrc.tmpl b/home/dot_zshrc.tmpl index d2266e8..b0c4f70 100644 --- a/home/dot_zshrc.tmpl +++ b/home/dot_zshrc.tmpl @@ -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" }}