Skip to content

Commit 74c9fa8

Browse files
Wuvistcvanelteren
authored andcommitted
Update shell_init for nushell
In nushell, PATH variable is a list, not a string. After load-env, must set $env.PATH to a list.
1 parent bd59111 commit 74c9fa8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libmamba/src/core/shell_init.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -503,6 +503,7 @@ namespace mamba
503503
| into record
504504
| load-env
505505
)
506+
$env.PATH = $env.PATH | split row (char esep)
506507
# update prompt
507508
if ($env.CONDA_PROMPT_MODIFIER? != null) {
508509
$env.PROMPT_COMMAND = {|| $env.CONDA_PROMPT_MODIFIER + (do $env.PROMPT_COMMAND_BK)}

0 commit comments

Comments
 (0)