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" }}