summaryrefslogtreecommitdiff
path: root/lib/git.zsh
diff options
context:
space:
mode:
authorMichele Bologna <michele.bologna@gmail.com>2015-09-23 10:52:24 +0200
committerMichele Bologna <michele.bologna@gmail.com>2015-09-23 10:52:24 +0200
commit5323954c98ca41b47f0d9d40797932d4a6cd980f (patch)
tree4294e92b35cdfe3a53ea4b6d48c86ddf40e284c9 /lib/git.zsh
parent76a26a2a59d8c6d0f65a4426cdb93920e255aea7 (diff)
downloadzsh-5323954c98ca41b47f0d9d40797932d4a6cd980f.tar.gz
zsh-5323954c98ca41b47f0d9d40797932d4a6cd980f.tar.bz2
zsh-5323954c98ca41b47f0d9d40797932d4a6cd980f.zip
Uniform git prompt equal remote
Uniform git prompt equal remote to all others prompts, setting the correct symbol (if applicable) to $git_remote_status, instead of echoing it. It also solves the problem pointed out in #3911
Diffstat (limited to 'lib/git.zsh')
-rw-r--r--lib/git.zsh2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/git.zsh b/lib/git.zsh
index baf863717..15cd364a0 100644
--- a/lib/git.zsh
+++ b/lib/git.zsh
@@ -38,7 +38,7 @@ git_remote_status() {
if [ $ahead -eq 0 ] && [ $behind -eq 0 ]
then
- echo "$ZSH_THEME_GIT_PROMPT_EQUAL_REMOTE"
+ git_remote_status="$ZSH_THEME_GIT_PROMPT_EQUAL_REMOTE"
elif [ $ahead -gt 0 ] && [ $behind -eq 0 ]
then
git_remote_status="$ZSH_THEME_GIT_PROMPT_AHEAD_REMOTE"