Skip to content

Commit

Permalink
Simplify environment lookup in Nushell activation (#2506)
Browse files Browse the repository at this point in the history
  • Loading branch information
kubouch committed Feb 27, 2023
1 parent 2762dff commit 8cef45f
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
@@ -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
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 8cef45f

Please sign in to comment.