Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

How to use Right Prepromt for kube context? #622

Closed
nela opened this issue Feb 17, 2022 · 1 comment
Closed

How to use Right Prepromt for kube context? #622

nela opened this issue Feb 17, 2022 · 1 comment

Comments

@nela
Copy link

nela commented Feb 17, 2022

Firstly, thanks for a cool and simple theme!

This is not really an issue, just looking for advice. I am looking to fork pure and fit it to my own needs. In that regard I'd like to add a right prepromt to display the kube context, and also move the execution time to the right preprompt. I've been playing around with RPROMPT, but that gives me the output in line with prompt.

Also wondering if you have any recommendations regarding implementation of zsh-kubectl-prompt asynchronously?

@nela nela changed the title Right Prepromt [Question] Right Prepromt Feb 17, 2022
@nela
Copy link
Author

nela commented Feb 17, 2022

I\ve come accross this post and it seems as the appending padding and right prompt stuff to preprompt_parts is the way to go. I do find it a bit tricky to calculate the padding due to the async nature of preprompt update.
Also, after browsing issues I see that my questions is somewhat related to #460 and #448. In any case, some guidance would be appreciated.

@mafredri mafredri changed the title [Question] Right Prepromt How to use Right Prepromt for kube context? Jun 5, 2022
Repository owner locked and limited conversation to collaborators Jun 5, 2022
@mafredri mafredri converted this issue into discussion #629 Jun 5, 2022

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant