Fix issue with tmux.kak setting empty TMPDIR variable

This commit is contained in:
eli 2021-04-24 17:59:13 +01:00
parent 272b70298e
commit 453cb7f367

View File

@ -22,7 +22,11 @@ define-command -hidden -params 2.. tmux-terminal-impl %{
shift shift
# ideally we should escape single ';' to stop tmux from interpreting it as a new command # ideally we should escape single ';' to stop tmux from interpreting it as a new command
# but that's probably too rare to care # but that's probably too rare to care
if [ -n "$TMPDIR" ]; then
TMUX=$tmux tmux $tmux_args env TMPDIR="$TMPDIR" "$@" < /dev/null > /dev/null 2>&1 & TMUX=$tmux tmux $tmux_args env TMPDIR="$TMPDIR" "$@" < /dev/null > /dev/null 2>&1 &
else
TMUX=$tmux tmux $tmux_args "$@" < /dev/null > /dev/null 2>&1 &
fi
} }
} }