summaryrefslogtreecommitdiff
path: root/12_Prompts.zsh
diff options
context:
space:
mode:
Diffstat (limited to '12_Prompts.zsh')
-rw-r--r--12_Prompts.zsh7
1 files changed, 5 insertions, 2 deletions
diff --git a/12_Prompts.zsh b/12_Prompts.zsh
index 4a6c19e..ef9f319 100644
--- a/12_Prompts.zsh
+++ b/12_Prompts.zsh
@@ -103,8 +103,11 @@ old_precmd()
SVNREVSIZE=${#${SVNREV:+ r$SVNREV}}
if [ "$SVNREV" != "" ]
then
- SVNSTATUS="$(svn diff 2>&-)"
- SVNSTATUS=${${SVNSTATUS:+$prompt_colors[not_up_to_date]}:-$prompt_colors[up_to_date]}
+ if [ -z "$DO_NOT_CHECK_SVN_STATUS" ]
+ then
+ SVNSTATUS="$(svn diff 2>&-)"
+ SVNSTATUS=${${SVNSTATUS:+$prompt_colors[not_up_to_date]}:-$prompt_colors[up_to_date]}
+ fi
fi
SVNREV=${SVNREV:+$C_$prompt_colors[doubledot]$_C $C_$SVNSTATUS$_C"r"$SVNREV}
[ "$DEBUG" = "yes" ] && echo