guard wsh completion installation by prereqs (#364)

This commit is contained in:
Mike Sawka
2024-09-11 11:14:38 -07:00
committed by GitHub
parent 912fcca865
commit e46be65baf
+6 -3
View File
@@ -51,7 +51,9 @@ const (
[ -f ~/.zshrc ] && source ~/.zshrc [ -f ~/.zshrc ] && source ~/.zshrc
export PATH={{.WSHBINDIR}}:$PATH export PATH={{.WSHBINDIR}}:$PATH
source <(wsh completion zsh) if [[ -n ${_comps+x} ]]; then
source <(wsh completion zsh)
fi
` `
ZshStartup_Zlogin = ` ZshStartup_Zlogin = `
@@ -79,8 +81,9 @@ elif [ -f ~/.profile ]; then
fi fi
export PATH={{.WSHBINDIR}}:$PATH export PATH={{.WSHBINDIR}}:$PATH
if type _init_completion &>/dev/null; then
source <(wsh completion bash) source <(wsh completion bash)
fi
` `
PwshStartup_wavepwsh = ` PwshStartup_wavepwsh = `