Skip to content

Commit 9843084

Browse files
drnclaude
andcommitted
Detect Conductor/Superset via parent process instead of env vars.
Replace CONDUCTOR_ROOT_PATH and SUPERSET_ENV checks with ps-based parent process detection so tmux is reliably skipped in embedded terminals regardless of whether the host app sets env vars. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent b38a7a6 commit 9843084

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

home/zshrc

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,16 @@ source $HOME/.dots/sys/env 2>/dev/null
2323
source $HOME/.dots/sys/env.local 2>/dev/null
2424

2525
# autoload tmux if on main dev machine
26-
if [[ "$TMUX" = "" && "$HOST" != "sanguinemini"* && -z "$CONDUCTOR_ROOT_PATH" && -z "$SUPERSET_ENV" ]]; then
26+
# skip if already in tmux, on mini, or inside conductor/superset
27+
_parent_cmd=$(ps -o comm= -p $PPID 2>/dev/null)
28+
if [[ "$TMUX" = "" \
29+
&& "$HOST" != "sanguinemini"* \
30+
&& "$_parent_cmd" != *"Conductor"* \
31+
&& "$_parent_cmd" != *"Superset"* \
32+
]]; then
2733
tmux-start master && exit
2834
fi
35+
unset _parent_cmd
2936

3037
if [[ -n "$TMUX" || "$HOST" == "sanguinemini"* ]]; then
3138
# Load zoxide

0 commit comments

Comments
 (0)