summaryrefslogtreecommitdiff
path: root/git.zsh
diff options
context:
space:
mode:
Diffstat (limited to 'git.zsh')
-rw-r--r--git.zsh4
1 files changed, 2 insertions, 2 deletions
diff --git a/git.zsh b/git.zsh
index 567c2faa2..b8fd1f08e 100644
--- a/git.zsh
+++ b/git.zsh
@@ -3,7 +3,7 @@ function git_prompt_info() {
if [[ -d .git ]]; then
ref=$(git symbolic-ref HEAD 2> /dev/null) || return
branch=${ref#refs/heads/}
- CURRENT_BRANCH="%{$fg[red]%}git:(%{$fg[green]${branch}%{$fg[red])"
+ CURRENT_BRANCH="git:(%{$fg[red]%}${branch}%{$fg[blue]%})%{$reset_color%}$(parse_git_dirty)"
else
CURRENT_BRANCH=''
fi
@@ -12,5 +12,5 @@ function git_prompt_info() {
}
parse_git_dirty () {
- [[ $(git status | tail -n1) != "nothing to commit (working directory clean)" ]] && echo "%{$fg[white] ♻ "
+ [[ $(git status | tail -n1) != "nothing to commit (working directory clean)" ]] && echo " %{$fg[yellow]%}✗%{$reset_color%}"
}