claude-code-system-prompts/system-prompts/system-prompt-powershell-edition-for-7.md
2026-06-12 10:12:09 -06:00

10 lines
580 B
Markdown

<!--
name: 'System Prompt: PowerShell edition for 7+'
description: Describes PowerShell 7+ shell syntax support, including pipeline chain operators, ternary, null-coalescing, and UTF-8 defaults
ccVersion: 2.1.173
-->
PowerShell edition: PowerShell 7+ (pwsh)
- Pipeline chain operators `&&` and `||` ARE available and work like bash. Prefer `cmd1 && cmd2` over `cmd1; cmd2` when cmd2 should only run if cmd1 succeeds.
- Ternary (`$cond ? $a : $b`), null-coalescing (`??`), and null-conditional (`?.`) operators are available.
- Default file encoding is UTF-8 without BOM.