Skip to content

Commit 04b9782

Browse files
committed
fix: update PowerShell note to use && for cmd.exe reference
1 parent b467dd3 commit 04b9782

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/prompts/sections/rules.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ function getCommandChainNote(): string {
3636

3737
// Check for PowerShell
3838
if (shell.includes("powershell") || shell.includes("pwsh")) {
39-
return "Note: Using `;` for PowerShell command chaining. For bash/zsh use `&&`, for cmd.exe use `&`. IMPORTANT: When using PowerShell, avoid Unix-specific utilities like `sed`, `grep`, `awk`, `cat`, `rm`, `cp`, `mv`. Instead use PowerShell equivalents: `Select-String` for grep, `Get-Content` for cat, `Remove-Item` for rm, `Copy-Item` for cp, `Move-Item` for mv, and PowerShell's `-replace` operator or `[regex]` for sed."
39+
return "Note: Using `;` for PowerShell command chaining. For bash/zsh use `&&`, for cmd.exe use `&&`. IMPORTANT: When using PowerShell, avoid Unix-specific utilities like `sed`, `grep`, `awk`, `cat`, `rm`, `cp`, `mv`. Instead use PowerShell equivalents: `Select-String` for grep, `Get-Content` for cat, `Remove-Item` for rm, `Copy-Item` for cp, `Move-Item` for mv, and PowerShell's `-replace` operator or `[regex]` for sed."
4040
}
4141

4242
// Check for cmd.exe

0 commit comments

Comments
 (0)