Skip to content

Instantly share code, notes, and snippets.

@inspire12
Created December 17, 2025 08:09
Show Gist options
  • Select an option

  • Save inspire12/a0e9005578010b5caaf7a12a48e11ce3 to your computer and use it in GitHub Desktop.

Select an option

Save inspire12/a0e9005578010b5caaf7a12a48e11ce3 to your computer and use it in GitHub Desktop.
cat << 'EOF' >> ~/.bashrc
# kubectl aliases
alias k=kubectl
alias kg='kubectl get'
alias kga='kubectl get all'
alias kd='kubectl describe'
alias kdel='kubectl delete'
alias kaf='kubectl apply -f'
alias kdf='kubectl delete -f'
alias kgw='kubectl get -o wide'
alias kgy='kubectl get -o yaml'
# kubectl completion
source <(kubectl completion bash)
complete -F __start_kubectl k
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment