Guest User

Untitled

a guest
May 24th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. export KOPS_STATE_STORE=s3://habx-k8s
  2. source <(kops completion bash)
  3. source <(kubectl completion bash)
  4. source <(helm completion bash)
  5. source $(brew --prefix)/etc/bash_completion
  6. export PS1="\h:\W \u [\$(kubectl config current-context)]\$ "
  7. _kube_contexts()
  8. {
  9. local curr_arg;
  10. curr_arg=${COMP_WORDS[COMP_CWORD]}
  11. COMPREPLY=( $(compgen -W "- $(kubectl config get-contexts --output='name')" -- $curr_arg ) );
  12. }
  13.  
  14. complete -F _kube_contexts xkubectx kctx
Add Comment
Please, Sign In to add comment