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

Display kube_ps1 on the prompt right side #174

Merged
merged 1 commit into from
May 24, 2023

Conversation

Artmorse
Copy link
Contributor

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. 😁

@Artmorse Artmorse changed the title How to see kube_ps1 on the prompt right side Display kube_ps1 on the prompt right side May 12, 2023
@credativ-dar
Copy link

credativ-dar commented May 16, 2023

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
Copy link
Contributor Author

Artmorse commented May 16, 2023

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 ⬇️ (it display N/A because I'm not connected to any cluster)
image

@credativ-dar
Copy link

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
Copy link
Owner

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!

@jonmosco jonmosco closed this May 24, 2023
@jonmosco jonmosco reopened this May 24, 2023
@jonmosco jonmosco merged commit 3a7ba03 into jonmosco:master May 24, 2023
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

Successfully merging this pull request may close these issues.

3 participants