Skip to content

Commit

Permalink
feat: Support nushell scripts on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Sacro authored and twpayne committed Aug 16, 2023
1 parent 7d143c3 commit a51179e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions assets/chezmoi.io/docs/reference/target-types.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ The default script interpreters are:

| Extension | Command | Arguments |
| --------- | ------------ | --------- |
| `.nu` | `nu` | *none* |
| `.pl` | `perl` | *none* |
| `.py` | `python3` | *none* |
| `.ps1` | `powershell` | `-NoLogo` |
Expand Down
3 changes: 3 additions & 0 deletions internal/cmd/util_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ var defaultInterpreters = map[string]*chezmoi.Interpreter{
"cmd": {},
"com": {},
"exe": {},
"nu": {
Command: "nu",
},
"pl": {
Command: "perl",
},
Expand Down

0 comments on commit a51179e

Please sign in to comment.