Skip to content

Shell setup (ccuse)

The ccuse command is a shell function that wraps ccswitch env. Add this to your shell profile (.zshrc, .bashrc, etc.):

Terminal window
eval "$(ccswitch shellinit)"

Then restart your shell or source the file:

Terminal window
source ~/.zshrc

ccswitch shellinit prints:

Terminal window
ccuse() {
if [ "$1" = "--unset" ]; then eval "$(ccswitch env --unset)"; return; fi
eval "$(ccswitch env "$1")"
}
Terminal window
ccuse work # activate 'work' profile in this shell
ccuse bedrock-prod # activate 'bedrock-prod' in this shell
ccuse --unset # clear all profile env vars

Each shell is independent — you can have work in one terminal and personal in another.

This site uses GoatCounterfor page counts — no cookies, no personal data, no tracking across sites.