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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -51,7 +51,9 @@ const (
[ -f ~/.zshrc ] && source ~/.zshrc
export PATH={{.WSHBINDIR}}:$PATH
if [[ -n ${_comps+x} ]]; then
source <(wsh completion zsh)
fi
`
ZshStartup_Zlogin = `
@ -79,8 +81,9 @@ elif [ -f ~/.profile ]; then
fi
export PATH={{.WSHBINDIR}}:$PATH
if type _init_completion &>/dev/null; then
source <(wsh completion bash)
fi
`
PwshStartup_wavepwsh = `