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
|
_simplerich_update_git_info
|
||||||
fi
|
fi
|
||||||
|
|
||||||
_SIMPLERICH_PROMPT_CALLED_COUNT="$((_SIMPLERICH_PROMPT_CALLED_COUNT + 1))"
|
local count="$((_SIMPLERICH_PROMPT_CALLED_COUNT + 1))"
|
||||||
if [ "$_SIMPLERICH_PROMPT_CALLED_COUNT" -ge 10 ]; then
|
if [ "$count" -ge 10 ]; then
|
||||||
_SIMPLERICH_PROMPT_CALLED_COUNT=0
|
count=0
|
||||||
fi
|
fi
|
||||||
|
export _SIMPLERICH_PROMPT_CALLED_COUNT=$count
|
||||||
}
|
}
|
||||||
|
|
||||||
# git
|
# git
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue