{"version":"2.1.120","anchor":"expanded-windows-powershell-integration","canonical_anchor":"expanded-windows-powershell-integration","heading":"Expanded Windows PowerShell Integration","tier":null,"area":null,"scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.120\/e\/expanded-windows-powershell-integration","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.120","markdown":"### Expanded Windows PowerShell Integration\n\nPowerShell support on Windows has been improved with smarter shell selection and better error handling:\n\n- Shell selection now falls back gracefully: if `defaultShell` is set to \"bash\" but Git Bash isn't installed, PowerShell is used instead, and vice versa\n- The shell setting description now reads \"Defaults to bash (powershell on Windows without Git Bash)\"\n- Clipboard operations on Windows now use proper argument arrays instead of concatenated strings for safer command execution\n- Clear error messages guide users when neither Git Bash nor PowerShell is available:\n- \"Claude Code on Windows requires either Git for Windows (for bash) or PowerShell\"\n- Hook errors now suggest \"Install Git for Windows, or add `shell: powershell` to this hook's config\"\n\n**Evidence**\n\nShell fallback logic in `g24()` function \u2014 search for `\"Git Bash not found\"` and `\"CLAUDE_CODE_USE_POWERSHELL_TOOL\"`"}