Skip to content
This repository has been archived by the owner on Apr 24, 2020. It is now read-only.

Commit

Permalink
Merge pull request #693 from iScrE4m/patch-2
Browse files Browse the repository at this point in the history
Fix of k8s shorter segment
  • Loading branch information
bhilburn authored Dec 14, 2017
2 parents 3fe9b83 + ea062a1 commit 40b500c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions powerlevel9k.zsh-theme
Original file line number Diff line number Diff line change
Expand Up @@ -1430,11 +1430,11 @@ prompt_kubecontext() {

local k8s_final_text=""

if [[ "$k8s_context" == "k8s_namespace" ]]; then
if [[ "$cur_ctx" == "cur_namespace" ]]; then
# No reason to print out the same identificator twice
k8s_final_text="$k8s_context"
k8s_final_text="$cur_ctx"
else
k8s_final_text="$k8s_context/$k8s_namespace"
k8s_final_text="$cur_ctx/$cur_namespace"
fi

"$1_prompt_segment" "$0" "$2" "magenta" "white" "$k8s_final_text" "KUBERNETES_ICON"
Expand Down

0 comments on commit 40b500c

Please sign in to comment.