diff --git a/cmd/carapace/cmd/lazyInit.go b/cmd/carapace/cmd/lazyInit.go index 9c5caecadf..1bc2a87890 100644 --- a/cmd/carapace/cmd/lazyInit.go +++ b/cmd/carapace/cmd/lazyInit.go @@ -120,9 +120,9 @@ function unset-env -d "unset environment variable"; set -e $argv[1]; end` case "nushell": return ` -def-env get-env [name] { $env | get $name } -def-env set-env [name, value] { load-env { $name: $value } } -def-env unset-env [name] { hide-env $name }` +def --env get-env [name] { $env | get $name } +def --env set-env [name, value] { load-env { $name: $value } } +def --env unset-env [name] { hide-env $name }` case "powershell": return `