#!/bin/sh
# PATH shim, injected only into the "personal" Claude instance.
# Electron shells out to xdg-open (via PATH) to open the browser for
# sign-in. Recording the profile here is what lets the claude:// callback
# find its way back to the instance that actually started the login.
printf '%s' "personal" > "$HOME/.config/claude-profile-target" 2>/dev/null
exec /usr/bin/xdg-open "$@"
