Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shell prompt support with starship #277

Open
soxofaan opened this issue Oct 18, 2024 · 0 comments
Open

Shell prompt support with starship #277

soxofaan opened this issue Oct 18, 2024 · 0 comments

Comments

@soxofaan
Copy link

I just started playing with kubie. Installation and first use went fine, but I noticed my prompt did not show the active kubernetes context/namespace like I had seen in screenshots and demo's of others. Fast-forward to the why: I'm using starship to manage my shell prompt, which uses its own prompt definition, and basically ignores PS1 updates kubie might be doing.

To who it might concern, the solution is actually pretty easy: starship comes with its own kubernetes plugin to show context/namespace (and more). You minimally have to add this to your starship config:

[kubernetes]
disabled = false

This plugin follows $KUBECONFIG, so it is compatible with kubie

(FYI I'm just putting this here in an github issue, as it might prevent other people losing time on figuring this out. To be discussed if this deserves a place in the docs/readme)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant