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 prompt on the right side of the terminal #61

Closed
talal opened this issue Aug 14, 2018 · 2 comments
Closed

Display kube-ps1 prompt on the right side of the terminal #61

talal opened this issue Aug 14, 2018 · 2 comments

Comments

@talal
Copy link

talal commented Aug 14, 2018

Could you possibly add the ability to display the kube_ps1 part of the prompt on the right side of the terminal (refer to screenshots).

This is how kube-ps1 looks in my terminal window:
screen shot 2018-08-14 at 17 49 11

And this is how zsh-kubectl-prompt looks in my terminal window:
screen shot 2018-08-14 at 17 49 50

I think a custom option that would implement this functionality would also be extremely useful for people who use bullet train/powerline9k type themes where the prompt tends to get pretty long.

If there is already a way through which I can accomplish this by modifying my zsh config then do let me know, I'd highly appreciate that and would love to switch to over to kube-ps1.

@talal
Copy link
Author

talal commented Aug 14, 2018

Edit: I copied the following syntax from zsh-kubectl-prompt and it works for kube-ps1 too:

RPROMPT='$(kube_ps1)'$RPROMPT

Screenshot:
screen shot 2018-08-14 at 18 22 02

Perhaps, you can reference this in the README somewhere so others can find it.

Feel free to close this issue at your convenience.

@jonmosco
Copy link
Owner

Thank you for using the prompt! I will include this in the README, thank you.

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

2 participants