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) \)とした
参考
https://negi-works.hatenablog.com/entry/2017/08/30/170000
zshの場合
http://fish.rubikitch.com/test/