Skip to content

Commit

Permalink
Merge pull request #1915 from rsteube/nu-fix-deprecated-defenv
Browse files Browse the repository at this point in the history
nushell: fix deprecated def-env
  • Loading branch information
rsteube authored Oct 21, 2023
2 parents bb343f0 + f846075 commit 1821f71
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/carapace/cmd/lazyInit.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 `
Expand Down

0 comments on commit 1821f71

Please sign in to comment.