diff --git a/modules/prompt/functions/prompt_sorin_setup b/modules/prompt/functions/prompt_sorin_setup index c4d12c34..fe1343db 100644 --- a/modules/prompt/functions/prompt_sorin_setup +++ b/modules/prompt/functions/prompt_sorin_setup @@ -87,7 +87,7 @@ function prompt_sorin_setup { unsetopt XTRACE KSH_ARRAYS prompt_opts=(cr percent subst) _prompt_sorin_precmd_async_pid=0 - _prompt_sorin_precmd_async_data="${TMPPREFIX}-prompt_sorin_data" + _prompt_sorin_precmd_async_data=$(mktemp "${TMPDIR}/sorin-prompt-async-XXXXXXXXXX") # Load required functions. autoload -Uz add-zsh-hook diff --git a/runcoms/zprofile b/runcoms/zprofile index e5efb205..2fe10b57 100644 --- a/runcoms/zprofile +++ b/runcoms/zprofile @@ -74,5 +74,3 @@ if [[ ! -d "$TMPDIR" ]]; then mkdir "$TMPDIR" chmod 700 "$TMPDIR" fi - -TMPPREFIX="${TMPDIR%/}/zsh"