You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem is that we need to run the activation scripts using the system shell interpreters so as of right now we use the default shells so we always know it will be available. This is cmd.exe on windows and bash on Unix. This makes it that it can't run the .ps1 files.
For now I'll update the documentation to explain this behavior. Would that be enough for you?
Checks
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of pixi, using
pixi --version
.Reproducible example
On Windnows add an activation section to
pixi.toml
Create a
setup.ps1
with any content.Now activate the shell:
PS> pixi shell
This opens the
setup.ps1
file in NotePad, instead of executing it. Shell activation hangs until the file is closed.Issue description
On Windows activations using powershell scripts doesn't work. They open the script file in Notepad instead of executing it.
Using
*.bat
files works fine as workaround.Expected behavior
The powershell script should run.
The text was updated successfully, but these errors were encountered: