From 2a2c0a0957b9142a9574b8c34931c615f4ab647f Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Thu, 7 Jan 2016 01:42:03 +0900 Subject: [PATCH] [fzf-tmux] Turn off remain-on-exit option Related: https://github.com/junegunn/fzf.vim/issues/67 --- bin/fzf-tmux | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/fzf-tmux b/bin/fzf-tmux index dcd9357..f7371e1 100755 --- a/bin/fzf-tmux +++ b/bin/fzf-tmux @@ -141,11 +141,13 @@ done if [ -n "$term" -o -t 0 ]; then cat <<< "$fzf $opts > $fifo2; echo \$? > $fifo3 $close" > $argsf tmux set-window-option -q synchronize-panes off \;\ + set-window-option -q remain-on-exit off \;\ split-window $opt "cd $(printf %q "$PWD");$envs bash $argsf" $swap else mkfifo $fifo1 cat <<< "$fzf $opts < $fifo1 > $fifo2; echo \$? > $fifo3 $close" > $argsf tmux set-window-option -q synchronize-panes off \;\ + set-window-option -q remain-on-exit off \;\ split-window $opt "$envs bash $argsf" $swap cat <&0 > $fifo1 & fi