manager/config/bash/bashrc.d/kubectl

10 lines
247 B
Text
Raw Normal View History

2022-04-18 00:14:34 +01:00
## Description: Bash settings for kubectl
## vim: ft=sh :
export KUBECONFIG=${XDG_CONFIG_HOME}/kube/config
if [ -x "$( command -v kubectl )" ]; then
source <(kubectl completion bash)
alias k='kubectl'
complete -F __start_kubectl k
fi