From a51179e59e3f792bf445fa46e2f8f58117effd34 Mon Sep 17 00:00:00 2001 From: Ben Woodward Date: Tue, 15 Aug 2023 12:16:03 +0100 Subject: [PATCH] feat: Support nushell scripts on Windows --- assets/chezmoi.io/docs/reference/target-types.md | 1 + internal/cmd/util_windows.go | 3 +++ 2 files changed, 4 insertions(+) diff --git a/assets/chezmoi.io/docs/reference/target-types.md b/assets/chezmoi.io/docs/reference/target-types.md index 3b0b2847b19..05c515ef392 100644 --- a/assets/chezmoi.io/docs/reference/target-types.md +++ b/assets/chezmoi.io/docs/reference/target-types.md @@ -109,6 +109,7 @@ The default script interpreters are: | Extension | Command | Arguments | | --------- | ------------ | --------- | +| `.nu` | `nu` | *none* | | `.pl` | `perl` | *none* | | `.py` | `python3` | *none* | | `.ps1` | `powershell` | `-NoLogo` | diff --git a/internal/cmd/util_windows.go b/internal/cmd/util_windows.go index d33d8111aa4..3fe38bca0c0 100644 --- a/internal/cmd/util_windows.go +++ b/internal/cmd/util_windows.go @@ -17,6 +17,9 @@ var defaultInterpreters = map[string]*chezmoi.Interpreter{ "cmd": {}, "com": {}, "exe": {}, + "nu": { + Command: "nu", + }, "pl": { Command: "perl", },