This commit is contained in:
Sorin Ionescu 2011-05-13 14:42:05 -04:00
commit 1961b8d196
5 changed files with 17 additions and 2 deletions

View file

@ -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
}