Revert "Unset TMUX before splitting window" (#648)

This reverts commit 4d4447779f.
This commit is contained in:
Junegunn Choi 2016-08-31 14:20:29 +09:00
parent b166f18220
commit 22b089e47e
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627

View File

@ -161,14 +161,14 @@ done
if [[ -n "$term" ]] || [[ -t 0 ]]; then
cat <<< "\"$fzf\" $opts > $fifo2; echo \$? > $fifo3 $close" > $argsf
TMUX='' tmux set-window-option synchronize-panes off \;\
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='' tmux set-window-option synchronize-panes off \;\
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