pure-fish / pure

Pretty, minimal, and fast prompt for Fish shell inspired by sindresorhus/pure
https://pure-fish.github.io/pure/
MIT License
1.23k stars 132 forks source link

Namespace in K8S status prompt is duplicated #352

Open Stef16Robbe opened 1 month ago

Stef16Robbe commented 1 month ago

Versions

Pure: 4.11.0

Fish: 3.7.1

OS/distribution: MacOS Sonoma 14.6.1

Kubectl: v1.31.0

The issue

The namespace in the K8S status is duplicated, it seems, that at least for my Kubectl version, the namespace is already included in the Kubectl context, and the addition of the namespace after it is not necessary (anymore):

My prompt now:

~/.co/fish ☸ kube-system/<apiurl>/<username>/kube-system

Current context return:

❯ kubectl config current-context
kube-system/<apiurl>/<user>

And then pure-fish also adds:

❯ kubectl config view --minify --output 'jsonpath={..namespace}'
kube-system