Search the documentation
3 pages for defaultshell.
Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.
Claude Code settings
Claude Code CLI · in the page
settings
…| | `defaultShell` | **Default**: `"bash"`, or `"powershell"` on Windows when Bash isn't available. Default shell f…
Claude Code settings reference
Claude Code CLI · in the page
settings-reference
…| Agents, sessions, and worktrees | Any file | | [`defaultShell`](#defaultshell) | Choose whether Bash or PowerShell…
Tools reference
Claude Code CLI · in the page
tools-reference
…lls Three additional settings control where PowerShell is used: * `"defaultShell": "powershell"` in [`settings.json`](/docs/en/settings-reference#all-settings): routes interactive `!` commands throu…