Edith Puclla:
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))?
Fernando Jimenez:
Please, try with the kubectl
instead of the k
alias.
Fernando Jimenez:
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
Edith Puclla:
let me try
Edith Puclla:
Yes, that is right
Edith Puclla:
wow, this is a really good feature, it is saving me a lot of time
pikachunetes:
@Fernando Jimenez,
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
Thankyou
Fernando Jimenez:
@pikachunetes Perhaps this might help?
https://suraj.io/post/being-productive-with-kubectl/