Skip to content

v4.1.0

Choose a tag to compare

@dr5hn dr5hn released this 17 Apr 06:28

CCM v4.1.0

Added

  • ccm hook --isolated — emit a shell hook that activates isolated CLAUDE_CONFIG_DIR profiles per shell on cd into a bound directory, instead of rewriting the global active account. Concurrent terminals in different bound directories no longer clobber each other's credentials.
  • ccm switch --isolated --quiet — print only the profile path to stdout for use in command substitution; creates the profile on demand.

Fixed

  • Shell auto-switch hook was silently a no-op under zsh because _ccm_bindings["$path"]=val stored keys with literal quote characters, making ${_ccm_bindings[$PWD]} lookups always miss. Changed to unquoted subscript so bash and zsh agree on the key.
  • switch_isolated now returns on error instead of calling exit, preserving the calling shell when invoked programmatically (e.g. from the hook).

Install / Update

curl -fsSL https://raw.githubusercontent.com/dr5hn/ccm/main/install.sh | bash