summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2016-08-29 12:47:43 +0900
committerGitHub <noreply@github.com>2016-08-29 12:47:43 +0900
commitb166f18220fa02007c7f3fe3c4579a7a56b38477 (patch)
treec46d863c1bf932ee5724ea43aa1214811c58e1d9
parent68600f6ecf9ba5ab405a7aa55af7edb1e15e6493 (diff)
parent4d4447779fe4c3ff05c2e6809c1b0c5d754d9772 (diff)
downloadfzf-b166f18220fa02007c7f3fe3c4579a7a56b38477.tar.gz
Merge pull request #646 from qiemem/fix-tmux-groups
[fzf-tmux] Fix grouped tmux session confusion
-rwxr-xr-xbin/fzf-tmux4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/fzf-tmux b/bin/fzf-tmux
index c7701e95..f6742e49 100755
--- a/bin/fzf-tmux
+++ b/bin/fzf-tmux
@@ -161,14 +161,14 @@ done
if [[ -n "$term" ]] || [[ -t 0 ]]; then
cat <<< "\"$fzf\" $opts > $fifo2; echo \$? > $fifo3 $close" > $argsf
- tmux set-window-option synchronize-panes off \;\
+ TMUX='' 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 \
> /dev/null 2>&1
else
mkfifo $fifo1
cat <<< "\"$fzf\" $opts < $fifo1 > $fifo2; echo \$? > $fifo3 $close" > $argsf
- tmux set-window-option synchronize-panes off \;\
+ TMUX='' tmux set-window-option synchronize-panes off \;\
set-window-option remain-on-exit off \;\
split-window $opt "$envs bash $argsf" $swap \
> /dev/null 2>&1