fixed debian dirty prompt bug

pull/28/head
Florian Baumann 2010-11-22 11:44:28 +01:00
parent 27ea8b29c1
commit 8c6197717a
1 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,7 @@ function prompt_char {
}
function git_prompt_info {
if [[ -n $(git status -s 2> /dev/null) ]]; then
if [[ -n $(git status -s 2> /dev/null |grep -v ^# |grep -v "working directory clean") ]]; then
state=${GIT_THEME_PROMPT_DIRTY:-$SCM_THEME_PROMPT_DIRTY}
else
state=${GIT_THEME_PROMPT_CLEAN:-$SCM_THEME_PROMPT_CLEAN}