Skip to content

Commit fdea966

Browse files
committed
fix prompt
1 parent c5930b5 commit fdea966

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

libmamba/src/core/activation.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -1248,7 +1248,7 @@ namespace mamba
12481248

12491249
if (!env_transform.export_path.empty())
12501250
{
1251-
out << "PATH = " << env_transform.export_path << "\n";
1251+
out << "PATH = " << env_transform.export_path << (util::on_win ? ';' : ':') << "\n";
12521252
}
12531253

12541254
for (const fs::u8path& ds : env_transform.deactivate_scripts)
@@ -1268,7 +1268,6 @@ namespace mamba
12681268

12691269
for (const auto& [ekey, evar] : env_transform.export_vars)
12701270
{
1271-
// add unix or windows handling
12721271
out << ekey << " = " << evar << "\n";
12731272
}
12741273
for (const fs::u8path& p : env_transform.activate_scripts)

libmamba/src/core/shell_init.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -513,6 +513,7 @@ namespace mamba
513513
| load-env
514514
)
515515
# update prompt
516+
$env.CONDA_PROMPT_MODIFIER = "(" + $name + ")"
516517
if ($env.CONDA_PROMPT_MODIFIER? != null) {
517518
$env.PROMPT_COMMAND = {|| $env.CONDA_PROMPT_MODIFIER + (do $env.PROMPT_COMMAND_BK)}
518519
}

0 commit comments

Comments
 (0)