Timebox the git call for git_prompt_dirty

This commit is contained in:
Andrew Janke 2015-05-20 19:07:35 -04:00
commit 42f5928493
3 changed files with 109 additions and 36 deletions

View file

@ -39,6 +39,11 @@ ZSH_THEME_GIT_PROMPT_PREFIX="git:(" # Prefix at the very beginning of th
ZSH_THEME_GIT_PROMPT_SUFFIX=")" # At the very end of the prompt
ZSH_THEME_GIT_PROMPT_DIRTY="*" # Text to display if the branch is dirty
ZSH_THEME_GIT_PROMPT_CLEAN="" # Text to display if the branch is clean
ZSH_THEME_GIT_PROMPT_TIMEDOUT="?" # Text to display if status check timed out
# Timeout (in seconds, fractions okay) for SCM (git/hg/etc) info checks done
# inside prompt
ZSH_THEME_SCM_CHECK_TIMEOUT=1
# Setup the prompt with pretty colors
setopt prompt_subst