mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
Removed unnecessary _complete call which was silently failing and causing zsh completion to return a nonzero exit code
Removed unnecessary _complete and _expand aliases for zsh completion
This commit is contained in:
parent
4e8a7f4a4b
commit
04741b150e
@ -157,8 +157,6 @@ func runCompletionZsh(out io.Writer, boilerPlate string, kubectl *cobra.Command)
|
|||||||
zshInitialization := `
|
zshInitialization := `
|
||||||
__kubectl_bash_source() {
|
__kubectl_bash_source() {
|
||||||
alias shopt=':'
|
alias shopt=':'
|
||||||
alias _expand=_bash_expand
|
|
||||||
alias _complete=_bash_comp
|
|
||||||
emulate -L sh
|
emulate -L sh
|
||||||
setopt kshglob noshglob braceexpand
|
setopt kshglob noshglob braceexpand
|
||||||
|
|
||||||
@ -307,7 +305,6 @@ BASH_COMPLETION_EOF
|
|||||||
}
|
}
|
||||||
|
|
||||||
__kubectl_bash_source <(__kubectl_convert_bash_to_zsh)
|
__kubectl_bash_source <(__kubectl_convert_bash_to_zsh)
|
||||||
_complete kubectl 2>/dev/null
|
|
||||||
`
|
`
|
||||||
out.Write([]byte(zshTail))
|
out.Write([]byte(zshTail))
|
||||||
return nil
|
return nil
|
||||||
|
Loading…
Reference in New Issue
Block a user