diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2016-03-15 21:18:15 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2016-03-15 21:18:15 +0900 |
commit | df32c058333f1499d6d500f3bd18c3eb4fce525e (patch) | |
tree | 4c04f31e90d4b27a3aebd8e785b3a605610c322b /bin | |
parent | c0652adf4c96cede1f6502d09d6073c84d41f3d5 (diff) |
[fzf-tmux] Fix issues on tmux 1.8
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/fzf-tmux | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/bin/fzf-tmux b/bin/fzf-tmux index cd4160f7..f8fffafc 100755 --- a/bin/fzf-tmux +++ b/bin/fzf-tmux @@ -140,15 +140,17 @@ done if [ -n "$term" -o -t 0 ]; then cat <<< "$fzf $opts > $fifo2; echo \$? > $fifo3 $close" > $argsf - 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 + tmux set-window-option synchronize-panes off \;\ + set-window-option remain-on-exit off \;\ + split-window $opt "cd $(printf %q "$PWD");$envs bash $argsf" $swap \ + 2>&1 > /dev/null else mkfifo $fifo1 cat <<< "$fzf $opts < $fifo1 > $fifo2; echo \$? > $fifo3 $close" > $argsf - 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 + tmux set-window-option synchronize-panes off \;\ + set-window-option remain-on-exit off \;\ + split-window $opt "$envs bash $argsf" $swap \ + 2>&1 > /dev/null cat <&0 > $fifo1 & fi cat $fifo2 |