Skip to content
Myr

[fzf-tmux] tmux 1.6 compatibility

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

Patch submitted by @netei. Close #524.

authored by Junegunn Choi · committed by Junegunn Choi · parent 6ea760a · 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
138 unmodified lines
139done140141if [ -n "$term" -o -t 0 ]; then142 cat <<< "$fzf $opts > $fifo2; echo \$? > $fifo3 $close" > $argsf143 tmux set-window-option -q synchronize-panes off \;\144 set-window-option -q remain-on-exit off \;\143 tmux set-window-option synchronize-panes off 2> /dev/null \;\144 set-window-option remain-on-exit off 2> /dev/null \;\145 split-window $opt "cd $(printf %q "$PWD");$envs bash $argsf" $swap146else147 mkfifo $fifo1148 cat <<< "$fzf $opts < $fifo1 > $fifo2; echo \$? > $fifo3 $close" > $argsf149 tmux set-window-option -q synchronize-panes off \;\150 set-window-option -q remain-on-exit off \;\149 tmux set-window-option synchronize-panes off 2> /dev/null \;\150 set-window-option remain-on-exit off 2> /dev/null \;\151 split-window $opt "$envs bash $argsf" $swap152 cat <&0 > $fifo1 &153fi154cat $fifo2
2 unmodified lines