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
|
[ -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 = `
|
||||||
|
Loading…
Reference in New Issue
Block a user