diff options
author | Jakub Žádník <kubouch@gmail.com> | 2023-02-27 19:25:41 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-27 09:25:41 -0800 |
commit | 8cef45f3f8f1595c327bc4e744ab072bc4392f85 (patch) | |
tree | 29e51655f59abc6e559fa483ccf7f7f0c84aaaa8 | |
parent | 2762dff050948a7b4ae0ff515edcb85dd0bf3b74 (diff) | |
download | virtualenv-8cef45f3f8f1595c327bc4e744ab072bc4392f85.tar.gz |
Simplify environment lookup in Nushell activation (#2506)
-rw-r--r-- | docs/changelog/2506.feature.rst | 1 | ||||
-rw-r--r-- | src/virtualenv/activation/nushell/activate.nu | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/docs/changelog/2506.feature.rst b/docs/changelog/2506.feature.rst new file mode 100644 index 0000000..3e69002 --- /dev/null +++ b/docs/changelog/2506.feature.rst @@ -0,0 +1 @@ +Change environment variable existence check in Nushell activation script to not use deprecated command. diff --git a/src/virtualenv/activation/nushell/activate.nu b/src/virtualenv/activation/nushell/activate.nu index 5e5ee26..6357c8d 100644 --- a/src/virtualenv/activation/nushell/activate.nu +++ b/src/virtualenv/activation/nushell/activate.nu @@ -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' |