Colour branch name and add dirty string

This commit is contained in:
Geoff Garside 2009-08-31 21:23:59 +01:00
parent a9c1830462
commit 652caa6b25

View file

@ -4,7 +4,7 @@ function git_prompt_info() {
branch=${ref#refs/heads/}
if [[ -d .git ]]; then
CURRENT_BRANCH="(${branch})"
CURRENT_BRANCH="(%{$fg[red]%}${branch}%{$reset_color%}) $(parse_git_dirty) "
else
CURRENT_BRANCH=''
fi