Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- export KOPS_STATE_STORE=s3://habx-k8s
- source <(kops completion bash)
- source <(kubectl completion bash)
- source <(helm completion bash)
- source $(brew --prefix)/etc/bash_completion
- export PS1="\h:\W \u [\$(kubectl config current-context)]\$ "
- _kube_contexts()
- {
- local curr_arg;
- curr_arg=${COMP_WORDS[COMP_CWORD]}
- COMPREPLY=( $(compgen -W "- $(kubectl config get-contexts --output='name')" -- $curr_arg ) );
- }
- complete -F _kube_contexts xkubectx kctx
Add Comment
Please, Sign In to add comment