mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2026-10-02 16:03:47 +02:00
Merge pull request #329 from juanghurtado/master
Support for $(current_branch) on git_parse_ahead()
This commit is contained in:
commit
4f71818a8b
1 file changed
+1
-1
+1
-1
@@ -15,7 +15,7 @@ parse_git_dirty() {
|
||||
|
||||
# Checks if there are commits ahead from remote
|
||||
function git_prompt_ahead() {
|
||||
if $(echo "$(git log origin/master..HEAD 2> /dev/null)" | grep '^commit' &> /dev/null); then
|
||||
if $(echo "$(git log origin/$(current_branch)..HEAD 2> /dev/null)" | grep '^commit' &> /dev/null); then
|
||||
echo "$ZSH_THEME_GIT_PROMPT_AHEAD"
|
||||
fi
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user