Skip to content

Commit 02585da

Browse files
update nushell's str collect command to str join (#2532)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 461cd26 commit 02585da

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

docs/changelog/2532.bugfix.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
The nushell command 'str collect' has been superseded by the 'str join' command. The activate.nu script has
2+
been updated to reflect this change.

src/virtualenv/activation/nushell/activate.nu

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export-env {
6262
)
6363

6464
let venv_path = ([$virtual_env $bin] | path join)
65-
let new_path = ($old_path | prepend $venv_path | str collect $path_sep)
65+
let new_path = ($old_path | prepend $venv_path | str join $path_sep)
6666

6767
let new_env = {
6868
$path_name : $new_path
@@ -102,7 +102,7 @@ export-env {
102102
})
103103

104104
$new_env | merge {
105-
_OLD_VIRTUAL_PATH : ($old_path | str collect $path_sep)
105+
_OLD_VIRTUAL_PATH : ($old_path | str join $path_sep)
106106
_OLD_PROMPT_COMMAND : $old_prompt_command
107107
PROMPT_COMMAND : $new_prompt
108108
VIRTUAL_PROMPT : $virtual_prompt

0 commit comments

Comments
 (0)