⌨️CLAUDE_CODE_SHELL
Also known as CLAUDE_CODE_SHELL=/bin/zsh
It picks bash or zsh to run Claude Code's commands.
Think of it like
It is like you pick which pen you write with. The words stay the same.
Example
Jack's Mac ships an old bash, and one script needs a newer one. He points this at the newer bash.
Why it matters
A command can act one way in bash and another in zsh. This makes the choice on purpose.
Definition
Example code
bash
export CLAUDE_CODE_SHELL=/opt/homebrew/bin/bash
claudeCommon mistake
Key takeaways
- 1bash or zsh. A path to one.
- 2No fish. Not supported.
- 3Bad path. Picks one itself.