ZSH config for vcsh (maybe compatible with grml prompt system)?

Andre Klärner kandre at ak-online.be
Tue Aug 13 13:08:32 CEST 2013


Hi Thomas,

On Tue 13.08.2013 12:36:33, Thomas Koch wrote:
> has anybody a ZSH config snippet to share that shows the name of the current 
> vcsh repo in my prompt?

I got it running: https://git.ak-online.be/kandre/zshrc/blob/HEAD:/.zshrc.d/S03_prompt

Line 11 integrates it directly into the vcs_info prompt, which then in turn
is copied to $psvar[1] (lines 32-37) and as such referenced as %1v in line
99. As I have a lot of repos it checks if $VCSH_REPO_NAME is set and then
included this into the vcs_info output with an appended pipe.

> Extra bonus if it integrates nicely in the grml zsh config. :-)

Dunno if this integrates nicely. But I think you can simply change the
vcs_info format and it will show up.

Regards,
Andre

-- 
Andre Klärner
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 4043 bytes
Desc: not available
URL: <http://lists.madduck.net/pipermail/vcs-home/attachments/20130813/9ca3c2c3/attachment.bin>


More information about the vcs-home mailing list