jonmosco / kube-ps1

Kubernetes prompt info for bash and zsh
Apache License 2.0
3.47k stars 349 forks source link

Display kube_ps1 on the prompt right side #174

Closed Artmorse closed 1 year ago

Artmorse commented 1 year ago

I would like to update the documentation to explain how to display kube_ps1 on the prompt right side.

In my case, I prefer to display it on the right side. :grin:

credativ-dar commented 1 year ago

I'm sorry but I don't see how the commit in this PR achieve that goal. Without testing it I assume this would just replace the whole prompt with only the kube part.

Artmorse commented 1 year ago

So I let you test it. On my side, RPROMPT was empty so I just switch the value.

In my case it looks like this :arrow_down: (it display N/A because I'm not connected to any cluster) image

credativ-dar commented 1 year ago

I'm sorry my eyes previously didn't see the R in RPROMPT. Guess you are right and it all makes sense. Disregard my earlier comment.

jonmosco commented 1 year ago

Nice update to the docs! I haven't used the RPROMPT in a while but this looks like a great usage of it (especially with longer cluster names). Thanks!