CLAUDE_CONFIG_DIR env var: each config directory holds its own login, settings, session history, and memroy, fully isolated.
instead of just using claude , you have to type CLAUDE_CONFIG_DIR="$HOME/.claude-personal" claude to use claude with CLAUDE_CONFIG_DIR.
Git Bash에 커맨드로 등록하려면 이런식으로 해야된다.
t
In case you use PowerShell:
Add this to your PowerShell profile (notepad $PROFILE)
function claude-snulife {
Remove-Item Env:CLAUDE_CONFIG_DIR -ErrorAction SilentlyContinue
claude @args # default ~/.claude — already logged into snulife
}
function claude-personal {
$env:CLAUDE_CONFIG_DIR = "$env:USERPROFILE\.claude-personal"
claude @args
}
mv ~/.claude ~/.claude-snulife
mv ~/.claude.json ~/.claude-snulife/.claude.json
impossible, add one more line to .bashrc so bare claude defaults to snulife:
alias claude='claude-snulife'
(You can still reach the real binary as command claude if ever needed, and
claude-personal still works because inside the function claude refers to...
actually, with this alias, keep the functions calling command claude to be safe:)
claude-snulife() { CLAUDE_CONFIG_DIR="$HOME/.claude-snulife" command claude "$@";
}
claude-personal() { CLAUDE_CONFIG_DIR="$HOME/.claude-personal" command claude
"$@"; }
alias claude='claude-snulife'