k8s-mgmt-pod/docker/profile/20-k8s-tools-completion.sh
Michael Trip 4dbcde381f
All checks were successful
Build k8s-mgmt-pod image / Build & Push (push) Successful in 2m21s
initial commit
2026-06-23 15:06:17 +02:00

19 lines
No EOL
457 B
Bash

#!/bin/sh
# Enable kubectl and helm completion for interactive bash sessions.
if [ -n "${BASH_VERSION:-}" ]; then
if [ -r /usr/share/bash-completion/bash_completion ]; then
. /usr/share/bash-completion/bash_completion
fi
if [ -r /etc/bash_completion.d/kubectl ]; then
. /etc/bash_completion.d/kubectl
fi
if [ -r /etc/bash_completion.d/helm ]; then
. /etc/bash_completion.d/helm
fi
fi
alias k=kubectl
complete -F __start_kubectl k