Zsh VCS_INFO backend (shell prompt status) for jj #4936
2xsaiko
started this conversation in
Show and tell
Replies: 1 comment
-
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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