diff options
author | romkatv <roman.perepelitsa@gmail.com> | 2020-01-19 15:56:45 +0300 |
---|---|---|
committer | romkatv <roman.perepelitsa@gmail.com> | 2020-01-19 15:56:45 +0300 |
commit | 635ffb0e21df578bf8889c3e2966d52adb29207a (patch) | |
tree | 339785b2e3c1a321eeef2d72153376de302bbaa3 /internal/worker.zsh | |
parent | 61df3d1cfb5e77625156386241942ce7eabebdde (diff) |
load the same modules and functions in worker as in master
Diffstat (limited to 'internal/worker.zsh')
-rw-r--r-- | internal/worker.zsh | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/internal/worker.zsh b/internal/worker.zsh index 180ad2be..3db5a58d 100644 --- a/internal/worker.zsh +++ b/internal/worker.zsh @@ -5,7 +5,6 @@ function _p9k_worker_main() { zmodload zsh/system || return zmodload zsh/zselect || return - zmodload zsh/datetime || return ! { zselect -t0 || (( $? != 1 )) } || return typeset -g IFS=$' \t\n\0' @@ -205,6 +204,17 @@ function _p9k_worker_receive() { sysopen -w -o cloexec -u _p9k__worker_req_fd $_p9k__worker_file_prefix.fifo || return { print -r -- " + zmodload zsh/datetime + zmodload zsh/mathfunc + zmodload zsh/parameter + zmodload zsh/system + zmodload zsh/termcap + zmodload zsh/terminfo + zmodload zsh/zleparameter + zmodload -F zsh/stat b:zstat + zmodload -F zsh/net/socket b:zsocket + zmodload -F zsh/files b:zf_mv b:zf_rm + autoload -Uz is-at-least function _p9k_worker_main() { $functions[_p9k_worker_main] } function _p9k_worker_reply() { $functions[_p9k_worker_reply_remote] } function _p9k_worker_send_params() { $functions[_p9k_worker_send_params_remote] } |