mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-03-27 03:14:56 +01:00
Timebox the git call for git_prompt_dirty
This commit is contained in:
parent
140034605e
commit
42f5928493
3 changed files with 109 additions and 36 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue