Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion libmamba/src/core/activation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -709,7 +709,15 @@ namespace mamba
auto has_prefix = util::get_env("CONDA_PREFIX");
if (m_context.auto_activate_base && !has_prefix.has_value())
{
builder << get_self_exe_path().stem() << " activate base\n";
// use invocation operator to run commands represented by strings
if (is_powershell(this))
{
builder << "& " << get_self_exe_path().stem() << " activate base\n";
}
else
{
builder << get_self_exe_path().stem() << " activate base\n";
}
}
builder << hook_postamble() << "\n";
return builder.str();
Expand Down