sindresorhus / pure

Pretty, minimal and fast ZSH prompt
MIT License
13.12k stars 971 forks source link

How to use Right Prepromt for kube context? #622

Closed nela closed 2 years ago

nela commented 2 years ago

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 commented 2 years ago

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.