Sorry guys/girls for write too much.
I am trying to set the Completion on my terminal, this is Terminator terminal, look like it doesn’t work in this. Pressing tab I can’t have the command that I want. should i register it in other place this command (source <(kubectl completion bash))?
Please, try with the
kubectl instead of the
I see in https://kubernetes.io/docs/reference/kubectl/cheatsheet/#kubectl-autocomplete
that it promises to work with alias if:
alias k=kubectl complete -F __start_kubectl k
let me try
Yes, that is right
wow, this is a really good feature, it is saving me a lot of time
complete -F __start_kubectl k is working with my ‘k’ alias. but how to make autocompletion work with other aliases
for example, if I have an alias like this
alias kg='kubectl get' then
complete -F __start_kubectl kg is not working
Can you pls help here
@pikachunetes Perhaps this might help?