Skip to content

Commit

Permalink
[fzf-tmux] Create temp files in $TMPDIR if defined
Browse files Browse the repository at this point in the history
  • Loading branch information
junegunn committed Oct 5, 2015
1 parent 8fa9e85 commit 659f49a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bin/fzf-tmux
Expand Up @@ -91,10 +91,10 @@ set -e

# Clean up named pipes on exit
id=$RANDOM
argsf=/tmp/fzf-args-$id
fifo1=/tmp/fzf-fifo1-$id
fifo2=/tmp/fzf-fifo2-$id
fifo3=/tmp/fzf-fifo3-$id
argsf="${TMPDIR:-/tmp}/fzf-args-$id"
fifo1="${TMPDIR:-/tmp}/fzf-fifo1-$id"
fifo2="${TMPDIR:-/tmp}/fzf-fifo2-$id"
fifo3="${TMPDIR:-/tmp}/fzf-fifo3-$id"
cleanup() {
rm -f $argsf $fifo1 $fifo2 $fifo3
}
Expand Down

0 comments on commit 659f49a

Please sign in to comment.