Zsh VCS_INFO backend (shell prompt status) for jj #4936
dblsaiko
started this conversation in
Show and tell
Replies: 2 comments
-
Great, you could add that info in the Wiki: https://github.com/martinvonz/jj/wiki/Shell-Prompt |
Beta Was this translation helpful? Give feedback.
0 replies
-
Good work. Ended up using it. Works well with zap-prompt. @2xsaiko maybe this is something you could contribute to Z Shell itself? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The shell prompt I use (part of grml's zshrc) uses Zsh's VCS_INFO system (see zshcontrib(1)) to display VCS status prompt. I wrote a basic backend for jj for that, posting here for any other Zsh users to make use of it.
Source: https://git.dblsaiko.net/extra-zsh-vcsinfo/
Here's a sample log I just pulled out of my terminal, this is how it displays with grml's zshrc. Most of the text (in the brackets) is pulled as-is from jj status, except for empty working copies which get displayed as the parent bookmarks/change suffixed with a '+'.
Beta Was this translation helpful? Give feedback.
All reactions