From 00546b2df2296244b7e700085e6c3fbde11985ca Mon Sep 17 00:00:00 2001 From: Michael Allen Date: Sun, 2 Aug 2015 17:39:25 +0100 Subject: Include color prefixes in zsh status prompt --- git-base.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'git-base.sh') diff --git a/git-base.sh b/git-base.sh index 2aa7462..1b5ce30 100755 --- a/git-base.sh +++ b/git-base.sh @@ -309,10 +309,10 @@ zsh_color_changes_status() { local untracked_prefix="%{$fg_bold[white]%}" local suffix="%{$reset_color%}" - local staged_changes="$(staged_status "$porcelain")" - local unstaged_changes="$(unstaged_status "$porcelain")" - local untracked_changes="$(untracked_status "$porcelain")" - local conflicted_changes="$(conflicted_status "$porcelain")" + local staged_changes="$(staged_status "$porcelain" "$staged_prefix" "$suffix")" + local unstaged_changes="$(unstaged_status "$porcelain" "$unstaged_prefix" "$suffix")" + local untracked_changes="$(untracked_status "$porcelain" "$untracked_prefix" "$suffix")" + local conflicted_changes="$(conflicted_status "$porcelain" "$conflicted_prefix" "$suffix")" if [[ -n "$staged_changes" ]]; then staged_changes=" $staged_changes" fi -- cgit v1.2.3