mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-12-24 16:11:57 +00:00
load the same modules and functions in worker as in master
This commit is contained in:
parent
61df3d1cfb
commit
635ffb0e21
1 changed files with 11 additions and 1 deletions
|
@ -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] }
|
||||
|
|
Loading…
Reference in a new issue