mirror of
https://github.com/zplug/zplug
synced 2025-04-05 15:19:13 +02:00
18 lines
357 B
Bash
18 lines
357 B
Bash
export PERIOD=30
|
|
|
|
__zplug::job::polling::periodic()
|
|
{
|
|
if [[ -f $_zplug_lock[job] ]]; then
|
|
setopt nomonitor
|
|
else
|
|
if [[ -o monitor ]]; then
|
|
return 0
|
|
fi
|
|
if setopt monitor; then
|
|
__zplug::log::write::info "turn monitor on"
|
|
fi
|
|
fi
|
|
}
|
|
|
|
add-zsh-hook periodic __zplug::job::polling::periodic
|