[fzf-tmux] tmux 1.6 compatibility
Patch submitted by @netei. Close #524.
This commit is contained in:
parent
6ea760a336
commit
c0652adf4c
@ -140,14 +140,14 @@ 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 \;\
|
||||
tmux set-window-option synchronize-panes off 2> /dev/null \;\
|
||||
set-window-option remain-on-exit off 2> /dev/null \;\
|
||||
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 \;\
|
||||
tmux set-window-option synchronize-panes off 2> /dev/null \;\
|
||||
set-window-option remain-on-exit off 2> /dev/null \;\
|
||||
split-window $opt "$envs bash $argsf" $swap
|
||||
cat <&0 > $fifo1 &
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user