1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2024-12-22 08:08:00 +00:00

sorin theme: Use a proper temp file for async data

This commit is contained in:
Alexander Neumann 2017-06-13 10:55:49 +02:00 committed by Kaleb Elwert
parent 5bcc223e95
commit 2f20a80f72
2 changed files with 1 additions and 3 deletions

View File

@ -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

View File

@ -74,5 +74,3 @@ if [[ ! -d "$TMPDIR" ]]; then
mkdir "$TMPDIR"
chmod 700 "$TMPDIR"
fi
TMPPREFIX="${TMPDIR%/}/zsh"