Skip to content

Commit a51179e

Browse files
Sacrotwpayne
authored andcommitted
feat: Support nushell scripts on Windows
1 parent 7d143c3 commit a51179e

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

assets/chezmoi.io/docs/reference/target-types.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ The default script interpreters are:
109109

110110
| Extension | Command | Arguments |
111111
| --------- | ------------ | --------- |
112+
| `.nu` | `nu` | *none* |
112113
| `.pl` | `perl` | *none* |
113114
| `.py` | `python3` | *none* |
114115
| `.ps1` | `powershell` | `-NoLogo` |

internal/cmd/util_windows.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ var defaultInterpreters = map[string]*chezmoi.Interpreter{
1717
"cmd": {},
1818
"com": {},
1919
"exe": {},
20+
"nu": {
21+
Command: "nu",
22+
},
2023
"pl": {
2124
Command: "perl",
2225
},

0 commit comments

Comments
 (0)