Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,11 @@ indent_size = 2
indent_size = 2

# PowerShell files
# Use LF + no BOM so the `#!/usr/bin/env pwsh` shebang works on Linux/macOS.
# (CR breaks kernel exec lookup; BOM before `#!` prevents shebang recognition.)
# Modern PowerShell 7+ handles LF on Windows transparently; users with
# autocrlf=true still get CRLF in their working tree on checkout.
# Only the indent override is needed; LF + UTF-8 (no BOM) come from the
# global [*] section above. LF + no-BOM is required for the
# `#!/usr/bin/env pwsh` shebang at the top of every script in scripts/
# to work on Linux/macOS — CR breaks the kernel's exec lookup, and a
# leading BOM prevents shebang recognition entirely.
Comment on lines +30 to +33
[*.ps1]
indent_size = 4

Expand Down
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# Modern PowerShell 7+ handles LF on Windows transparently; Git's
# autocrlf still gives Windows users CRLF in their working tree if
# desired without forcing CRLF into the index.
*.ps1 text
*.ps1 text eol=lf


# Build and configuration files
Expand Down
Loading