Skip to content

Commit

Permalink
Port deactivate.nu to the new naming convention
Browse files Browse the repository at this point in the history
  • Loading branch information
kubouch authored and gaborbernat committed Jul 26, 2022
1 parent 717b595 commit 84b9df6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/virtualenv/activation/nushell/deactivate.nu
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ def-env deactivate-virtualenv [] {
$name in (env).name
}

let is-windows = ((sys).host.name | str downcase) == 'windows'
let is_windows = ((sys).host.name | str downcase) == 'windows'

let path-name = if $is-windows {
let path_name = if $is_windows {
if (has-env 'Path') {
'Path'
} else {
Expand All @@ -15,7 +15,7 @@ def-env deactivate-virtualenv [] {
'PATH'
}

load-env { $path-name : $env._OLD_VIRTUAL_PATH }
load-env { $path_name : $env._OLD_VIRTUAL_PATH }

let-env PROMPT_COMMAND = $env._OLD_PROMPT_COMMAND

Expand Down

0 comments on commit 84b9df6

Please sign in to comment.