Skip to content

Commit a75d440

Browse files
deevusclaude
andcommitted
fix: use login shell for zmx sessions so profile.d is sourced
zmx starts a non-login shell by default, which skips /etc/profile.d/. Pass 'bash -l' as the command to zmx attach so the detach hint and alias from pixels-profile.sh are sourced on session creation. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 86c2e54 commit a75d440

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cmd/console.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ func zmxRemoteCmd(ctx context.Context, cc ssh.ConnConfig, session string) string
126126
checkCC := ssh.ConnConfig{Host: cc.Host, User: cc.User, KeyPath: cc.KeyPath}
127127
code, err := ssh.ExecQuiet(ctx, checkCC, []string{"command -v zmx >/dev/null 2>&1"})
128128
if err == nil && code == 0 {
129-
return "unset XDG_RUNTIME_DIR && zmx attach " + session
129+
return "unset XDG_RUNTIME_DIR && zmx attach " + session + " bash -l"
130130
}
131131
return ""
132132
}

0 commit comments

Comments
 (0)