mirror of
https://github.com/ChesterYue/ohmyzsh-theme-passion.git
synced 2026-07-21 20:11:03 +00:00
fix TRAPALRM error
This commit is contained in:
parent
41c6c3998a
commit
65a61d5f0d
1 changed files with 4 additions and 3 deletions
|
|
@ -133,10 +133,11 @@ TRAPALRM() { # cspell:disable-line
|
|||
_simplerich_update_git_info
|
||||
fi
|
||||
|
||||
_SIMPLERICH_PROMPT_CALLED_COUNT="$((_SIMPLERICH_PROMPT_CALLED_COUNT + 1))"
|
||||
if [ "$_SIMPLERICH_PROMPT_CALLED_COUNT" -ge 10 ]; then
|
||||
_SIMPLERICH_PROMPT_CALLED_COUNT=0
|
||||
local count="$((_SIMPLERICH_PROMPT_CALLED_COUNT + 1))"
|
||||
if [ "$count" -ge 10 ]; then
|
||||
count=0
|
||||
fi
|
||||
export _SIMPLERICH_PROMPT_CALLED_COUNT=$count
|
||||
}
|
||||
|
||||
# git
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue