Server IP : 51.89.169.208 / Your IP : 216.73.216.211 Web Server : Apache System : Linux ns3209505.ip-198-244-202.eu 4.18.0-553.27.1.el8_10.x86_64 #1 SMP Tue Nov 5 04:50:16 EST 2024 x86_64 User : yellowleaf ( 1019) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/thread-self/root/usr/share/zsh/5.5.1/functions/ |
Upload File : |
local line calendar local -a lockfiles editor integer cal_running if (( $# )); then editor=("$@") else editor=(${VISUAL:-${EDITOR:-vi}}) fi sched | while read line; do [[ $line = *" calendar -s "<->" "<-> ]] && (( cal_running = 1 )) done zstyle -s ':datetime:calendar:' calendar-file calendar || calendar=~/calendar # start of subshell for OS file locking ( # start of block for following always to clear up lockfiles. # Not needed but harmless if OS file locking is used. { if zmodload -F zsh/system b:zsystem && zsystem supports flock && zsystem flock $calendar 2>/dev/null; then # locked OK : else calendar_lockfiles $calendar || exit 1 fi eval $editor \$calendar } always { (( ${#lockfiles} )) && rm -f $lockfiles } ) (( cal_running )) && calendar -s