Skip to content

Commit

Permalink
Merge pull request #68 from luisdavim/patch-1
Browse files Browse the repository at this point in the history
Do nothing if KUBE_PS1_CONTEXT is empty
  • Loading branch information
jonmosco committed Nov 23, 2018
2 parents 7d06e2d + 2f2c420 commit 0fa6961
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kube-ps1.sh
Expand Up @@ -308,6 +308,7 @@ kubeoff() {
# Build our prompt
kube_ps1() {
[[ "${KUBE_PS1_ENABLED}" == "off" ]] && return
[[ -z "${KUBE_PS1_CONTEXT}" ]] && return

local KUBE_PS1
local KUBE_PS1_RESET_COLOR="${_KUBE_PS1_OPEN_ESC}${_KUBE_PS1_DEFAULT_FG}${_KUBE_PS1_CLOSE_ESC}"
Expand Down

0 comments on commit 0fa6961

Please sign in to comment.