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

9 lines
184 B
Bash

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