Skip to content

Commit

Permalink
Simplify environment lookup in Nushell activation (pypa#2506)
Browse files Browse the repository at this point in the history
  • Loading branch information
kubouch authored and tarpas committed Jun 8, 2023
1 parent ac49c74 commit aedb209
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/changelog/2506.feature.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Change environment variable existence check in Nushell activation script to not use deprecated command.
2 changes: 1 addition & 1 deletion src/virtualenv/activation/nushell/activate.nu
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export-env {
}

def has-env [name: string] {
$name in (env).name
$name in $env
}

# Emulates a `test -z`, but btter as it handles e.g 'false'
Expand Down

0 comments on commit aedb209

Please # to comment.