Last active
September 6, 2022 23:16
-
-
Save jpts/318546e5665241656577accce34ff387 to your computer and use it in GitHub Desktop.
kubectl bash completion
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cat <<EOF >> ~/.bashrc | |
source <(kubectl completion bash) | |
alias k=kubectl | |
complete -o default -F __start_kubectl k | |
EOF | |
source /etc/profile.d/bash_completion.sh | |
source ~/.bashrc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment