Browse Source

sorin theme: Use a proper temp file for async data

master
Alexander Neumann 8 years ago committed by Kaleb Elwert
parent
commit
2f20a80f72
  1. 2
      modules/prompt/functions/prompt_sorin_setup
  2. 2
      runcoms/zprofile

2
modules/prompt/functions/prompt_sorin_setup

@ -87,7 +87,7 @@ function prompt_sorin_setup {
unsetopt XTRACE KSH_ARRAYS unsetopt XTRACE KSH_ARRAYS
prompt_opts=(cr percent subst) prompt_opts=(cr percent subst)
_prompt_sorin_precmd_async_pid=0 _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. # Load required functions.
autoload -Uz add-zsh-hook autoload -Uz add-zsh-hook

2
runcoms/zprofile

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

Loading…
Cancel
Save