Skip to content
Snippets Groups Projects
Commit 2a2c0a09 authored by Junegunn Choi's avatar Junegunn Choi
Browse files

[fzf-tmux] Turn off remain-on-exit option

parent 4230b6f3
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment