git: reset color between commit hash and branch name

This commit is contained in:
Nicole O'Connor 2023-08-15 12:05:25 -07:00
parent 35f517070b
commit 479805fe2a

View File

@ -29,7 +29,7 @@ function git_prompt() {
echo "warning: unrecognized branch type ${branchtype}" >&2
fi
print "%{$fg_bold[yellow]%}${branchname} %{$fg[yellow]%}${commithash}"
print "%{$fg_bold[yellow]%}${branchname} %{$reset_color%}%{$fg[yellow]%}${commithash}"
fi
}