mirror of
https://github.com/wavetermdev/waveterm.git
synced 2024-12-21 16:38:23 +01:00
guard wsh completion installation by prereqs (#364)
This commit is contained in:
parent
912fcca865
commit
e46be65baf
@ -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 = `
|
||||
|
Loading…
Reference in New Issue
Block a user