umayr / theme-sushi

Sushi theme for Fishshell.
MIT License
23 stars 20 forks source link

Fix k8s prompt #15

Open moali87 opened 4 years ago

moali87 commented 4 years ago

problem: 1) Kubernetes contexts does not have to be in a certain namespace, especially for macs. This is the result below.

image

2) Kubernetes commands output strings which causes the prompt to return multiples of the same string since they are obtained with the command command and then used to set the prompt. See below

image

With the proposed fix, the checks are dependent on files existing first, then setting the prompt for kubernetes context. As for kubernetes namespace, with the proposed fix, can be empty if need be.

This is with everything fixed:

image