mirror of
https://github.com/wavetermdev/backup.git
synced 2026-08-05 13:57:07 -07:00
guard wsh completion installation by prereqs (#364)
This commit is contained in:
@@ -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 = `
|
||||||
|
|||||||
Reference in New Issue
Block a user