-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
kubectl autocompletion #17
Comments
For ZSH you can do the following alias ks="kubectl safe"
functions[_kubectl-og]=$functions[_kubectl]
_kubectl() {
words[$words[(i)safe]]=()
_kubectl-og "$words[*]"
}
# this can be improved and narrowed down
zstyle ':completion:*' completer _complete _ignored _files https://unix.stackexchange.com/questions/477142/how-to-extend-existing-zsh-completion-functions |
You can now add the below anywhere on your path. Ensure it is executable.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
kubectl safe
should use the same autocompletion askubectl
The text was updated successfully, but these errors were encountered: