git remote shows as @a
WinstonN opened this issue · comments
hello
in bash oh-my-git works great, and show my remote correctly. However, in zsh it shows the remote as @a
what can be wrong with that?
I have tracked the code down to this Line
https://github.com/arialdomartini/oh-my-git-themes/blob/master/oppa-lana-style.zsh-theme#L131
But, that all looks fine. In the bash version, that code works fine
EDIT:
On closer inspection I think the bug originates here
https://github.com/arialdomartini/oh-my-git/blob/master/base.sh#L72
In my zsh shell I also get @a
but in a bash shell I correctly get remote/branch
SOLUTION:
writing it like this works
git rev-parse --symbolic-full-name --abbrev-ref '@{upstream}' 2> /dev/null;
The guys from #zsh on irc.freenode.net was kind enough to point me to this:
.zprezto/modules/environment/init.zsh
setopt BRACE_CCL # Allow brace character class list expansion.
disabling that, also, resolved the issue
I'm closing this issue for now