summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2016-03-15 20:35:25 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2016-03-15 20:35:25 +0900
commitc0652adf4c96cede1f6502d09d6073c84d41f3d5 (patch)
tree242c291ccbd191441243a69896096fdae36926a9 /bin
parent6ea760a336edb18f7d7ee38dd7b1ed3040a7a577 (diff)
[fzf-tmux] tmux 1.6 compatibility
Patch submitted by @netei. Close #524.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/fzf-tmux8
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/fzf-tmux b/bin/fzf-tmux
index f7371e1b..cd4160f7 100755
--- a/bin/fzf-tmux
+++ b/bin/fzf-tmux
@@ -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