Skip to content

Instantly share code, notes, and snippets.

@r7vme
Created June 21, 2018 12:14
Show Gist options
  • Save r7vme/62cafdc7b452bd44e946a4abd124711c to your computer and use it in GitHub Desktop.
Save r7vme/62cafdc7b452bd44e946a4abd124711c to your computer and use it in GitHub Desktop.
# Show active kubernetes context in your zsh
# 1. Clone https://github.com/jonmosco/kube-ps1/
# 2. Add following lines to ~/.zshrc (change path to kube-ps1.sh)
source ${HOME}/src/github/kube-ps1/kube-ps1.sh
export KUBE_PS1_SYMBOL_ENABLE="false"
export KUBE_PS1_NS_ENABLE="false"
export KUBE_PS1_PREFIX=""
export KUBE_PS1_SEPARATOR=""
export KUBE_PS1_SUFFIX=" "
PROMPT='$(kube_ps1)'$PROMPT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment