mirror of
https://github.com/Piebald-AI/claude-code-system-prompts.git
synced 2026-06-13 14:43:33 +08:00
10 lines
580 B
Markdown
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.
|