Pratik Patel:
Can anyone tell me how to make autocomplete work with alias ? If I use alias of kubectl then autocomplete is not working for me, its working with kubectl !
George Lazaroff:
source <(kubectl completion bash)
echo "source <(kubectl completion bash)" >> ~/.bashrc
alias k=kubectl
complete -F __start_kubectl k
alias k=kubectl
alias kgp="k get pod -o wide"
alias kgs="k get svc -o wide"
alias kgd="k get deploy -o wide"
alias kcc="kubectl config current-context"
export do="--dry-run=client -o yaml"
George Lazaroff:
.vimrc
syntax on
set paste nu et ts=2 sw=2 nowrap
George Lazaroff:
I think that the aforementioned aliases are enough for the exam
Murthy Pitchika: