Skip to content
Myr

[fzf-tmux] Create temp files in $TMPDIR if defined

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Junegunn Choi · committed by Junegunn Choi · parent 8fa9e85 · Browse files · 1 file+4 added−4 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+4 added−4 removed

  • other:+4 added−4 removed

1 file+4 added−4 removed

modified:bin/fzf-tmux+4 added-4 removed
89 unmodified lines
90set -e9192# Clean up named pipes on exit93id=$RANDOM94argsf=/tmp/fzf-args-$id95fifo1=/tmp/fzf-fifo1-$id96fifo2=/tmp/fzf-fifo2-$id97fifo3=/tmp/fzf-fifo3-$id94argsf="${TMPDIR:-/tmp}/fzf-args-$id"95fifo1="${TMPDIR:-/tmp}/fzf-fifo1-$id"96fifo2="${TMPDIR:-/tmp}/fzf-fifo2-$id"97fifo3="${TMPDIR:-/tmp}/fzf-fifo3-$id"98cleanup() {99 rm -f $argsf $fifo1 $fifo2 $fifo3100}101trap cleanup EXIT SIGINT SIGTERM
37 unmodified lines