Zsh completion works fine for kubectl exec
, but failed for kubectl exec -ti
.
I already did this echo "[[ $commands[kubectl] ]] && source <(kubectl completion zsh)" >> ~/.zshrc # add autocomplete permanently to your zsh shell
from official document Kubectl autocomplete
When I press tab key after input kubectl exec
, pod names were list, but nothing return when I press tab after input -ti
or -it
. No error info in the command line.
Where can I find the completion log? How to troubleshooting this?