Skip to content

Commit

Permalink
[segment] added kubecontext segement
Browse files Browse the repository at this point in the history
  • Loading branch information
sandjaie committed Aug 1, 2020
1 parent c543166 commit cd3d825
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
class Segment(BasicSegment):
def add_to_powerline(self):
kube_context = os.environ.get("KUBECONFIG")
if kubecontext:
if kube_context:
self.powerline.append(" kctx:%s " % os.path.basename(kube_context),
self.powerline.theme.KUBE_CONTEXT_FG,
self.powerline.theme.KUBE_CONTEXT_BG)
Expand Down

0 comments on commit cd3d825

Please sign in to comment.