Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] Misc/vcs_info-examples - avoid showing remote branch
Suraj N. Kurapati wrote:
[...]
> It prevents the display of remote branch if the remote branch has
> the same name as the local branch (minus the remote, of course).
[...]
> - if [[ -n ${remote} ]] ; then
> + if [[ -n ${remote} && ${remote#*/} != ${hook_com[branch]} ]] ; then
I like that. I'll apply it when I get home.
Regards, Frank
--
In protocol design, perfection has been reached not when there is
nothing left to add, but when there is nothing left to take away.
-- RFC 1925
Messages sorted by:
Reverse Date,
Date,
Thread,
Author