work/root/home/user/.local/profile.d/999.kubectl.sh

9 lines
184 B
Bash
Raw Permalink Normal View History

if [ -n "$BASH_VERSION" ]; then
if which kubectl 2>&1 > /dev/null ; then
source <(kubectl completion bash)
fi
alias k=kubectl
complete -F __start_kubectl k
fi