Skip to content
Myr

Unset TMUX before splitting window

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

Avoids confusing grouped sessions. Fixes #643

authored by Bryan Head · committed by Bryan Head · parent d873909 · Browse files · 1 file+2 added−2 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+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:bin/fzf-tmux+2 added-2 removed
159 unmodified lines
160done161162if [[ -n "$term" ]] || [[ -t 0 ]]; then163 cat <<< "\"$fzf\" $opts > $fifo2; echo \$? > $fifo3 $close" > $argsf164 tmux set-window-option synchronize-panes off \;\164 TMUX='' tmux set-window-option synchronize-panes off \;\165 set-window-option remain-on-exit off \;\166 split-window $opt "cd $(printf %q "$PWD");$envs bash $argsf" $swap \167 > /dev/null 2>&1168else169 mkfifo $fifo1170 cat <<< "\"$fzf\" $opts < $fifo1 > $fifo2; echo \$? > $fifo3 $close" > $argsf171 tmux set-window-option synchronize-panes off \;\171 TMUX='' tmux set-window-option synchronize-panes off \;\172 set-window-option remain-on-exit off \;\173 split-window $opt "$envs bash $argsf" $swap \174 > /dev/null 2>&1175 cat <&0 > $fifo1 &
4 unmodified lines