1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2024-11-16 02:41:13 +00:00

Colour branch name and add dirty string

This commit is contained in:
Geoff Garside 2009-08-31 21:23:59 +01:00
parent 5f039558a3
commit fee63f0db8

View File

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