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…
All settings
Claude Code CLI · in the page
settings-reference
…m, or refuses them | Agents, sessions, and worktrees | Any file | | [`defaultShell`](#defaultshell) | Choose whether Bash or PowerShell runs the shell commands you type with the [`!` prefix](/docs/en/…
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…