# Start Claude Code and Codex as the active subscription account, so `cx`, # `cy`, `tdl` and a plain `claude` all follow `omarchy agent account use`. # An explicitly set CLAUDE_CONFIG_DIR / CODEX_HOME still wins. claude() { local home="" [[ -z ${CLAUDE_CONFIG_DIR:-} ]] && home=$(omarchy-agent-account-home claude) if [[ -n $home ]]; then CLAUDE_CONFIG_DIR="$home" command claude "$@" else command claude "$@" fi } codex() { local home="" [[ -z ${CODEX_HOME:-} ]] && home=$(omarchy-agent-account-home codex) if [[ -n $home ]]; then CODEX_HOME="$home" command codex "$@" else command codex "$@" fi }