vscodeからの統合ターミナルでtmuxが起動しないようにする
$VSCODO_PIDの有無によってvscode起動時の処理を分岐させる code:init.fish
if status --is-interactive
if test \( -z (echo $TMUX) \) -a \( -z (echo $VSCODE_PID) \)
if not test (tmux attach)
tmux new-session
end
end
end
前はif test -z (echo $TMUX)だったところをif test \( -z (echo $TMUX) \) -a \( -z (echo $VSCODE_PID) \)とした
参考