summaryrefslogtreecommitdiff
path: root/internal/worker.zsh
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2020-01-26 18:54:52 +0300
committerromkatv <roman.perepelitsa@gmail.com>2020-01-26 18:54:52 +0300
commita9715367d4547dabaa724f9907bc971078453528 (patch)
tree9d84ab2be3a7e3a91901b68494a55d350923616e /internal/worker.zsh
parent98c614b85114b43124d5d861c3849c9b294799ff (diff)
fix prompt_char (never showed error); unify options
Diffstat (limited to 'internal/worker.zsh')
-rw-r--r--internal/worker.zsh12
1 files changed, 3 insertions, 9 deletions
diff --git a/internal/worker.zsh b/internal/worker.zsh
index 952e2a06..518b34fd 100644
--- a/internal/worker.zsh
+++ b/internal/worker.zsh
@@ -5,8 +5,6 @@ function _p9k_worker_main() {
exec 0<$_p9k__worker_file_prefix.fifo || return
zf_rm $_p9k__worker_file_prefix.fifo || return
- typeset -g IFS=$' \t\n\0'
-
local -i reset
local req fd
local -a ready
@@ -87,15 +85,12 @@ function _p9k_worker_invoke() {
}
function _p9k_worker_cleanup() {
- emulate -L zsh
- setopt no_hist_expand extended_glob no_prompt_bang prompt_{percent,subst} no_aliases
+ eval $__p9k_intro
[[ $_p9k__worker_shell_pid == $sysparams[pid] ]] && _p9k_worker_stop
return 0
}
function _p9k_worker_stop() {
- emulate -L zsh
- setopt no_hist_expand extended_glob no_prompt_bang prompt_{percent,subst} no_aliases
add-zsh-hook -D zshexit _p9k_worker_cleanup
[[ -n $_p9k__worker_resp_fd ]] && zle -F $_p9k__worker_resp_fd
[[ -n $_p9k__worker_resp_fd ]] && exec {_p9k__worker_resp_fd}>&-
@@ -111,8 +106,7 @@ function _p9k_worker_stop() {
}
function _p9k_worker_receive() {
- emulate -L zsh
- setopt no_hist_expand extended_glob no_prompt_bang prompt_{percent,subst} no_aliases
+ eval $__p9k_intro
[[ -z $_p9k__worker_resp_fd ]] && return
@@ -179,7 +173,7 @@ function _p9k_worker_receive() {
}
function _p9k_worker_start() {
- setopt no_bgnice monitor
+ setopt monitor || return
{
[[ -n $_p9k__worker_resp_fd ]] && return
_p9k__worker_file_prefix=${TMPDIR:-/tmp}/p10k.worker.$EUID.$$.$EPOCHSECONDS