fixed debian dirty prompt bug
parent
27ea8b29c1
commit
8c6197717a
|
|
@ -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}
|
||||
|
|
@ -81,4 +81,4 @@ function rvm_version_prompt {
|
|||
rvm=$(rvm tools identifier) || return
|
||||
echo -e "$RVM_THEME_PROMPT_PREFIX$rvm$RVM_THEME_PROMPT_SUFFIX"
|
||||
fi
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue