From 659f49a09a0e77efb60f4adcb092575c8aa58d87 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Mon, 5 Oct 2015 13:01:09 +0900 Subject: [PATCH] [fzf-tmux] Create temp files in $TMPDIR if defined --- bin/fzf-tmux | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/fzf-tmux b/bin/fzf-tmux index 239c8781..1085b963 100755 --- a/bin/fzf-tmux +++ b/bin/fzf-tmux @@ -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 }