diff options
author | Michael Allen <michael@michaelallen.io> | 2015-08-02 17:39:25 +0100 |
---|---|---|
committer | Michael Allen <michael@michaelallen.io> | 2015-08-02 17:39:25 +0100 |
commit | 00546b2df2296244b7e700085e6c3fbde11985ca (patch) | |
tree | 1faadb01b3f0f4671d018d5bfc6ee06993588c7a /git-base.sh | |
parent | 9baa0e175577c2a445792eb32ee2aa4423bac3aa (diff) | |
download | git-sonar-00546b2df2296244b7e700085e6c3fbde11985ca.tar.gz git-sonar-00546b2df2296244b7e700085e6c3fbde11985ca.zip |
Include color prefixes in zsh status prompt
Diffstat (limited to '')
-rwxr-xr-x | git-base.sh | 8 |
1 files changed, 4 insertions, 4 deletions
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 |