Official curl ... | bash
install not adding pixi to PATH when ~/.zshrc missing
#403
Closed
2 tasks done
Labels
🐞 bug
Something isn't working
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
curl -fsSL https://pixi.sh/install.sh | bash
Issue description
Running the official installation command on macOS is not adding
pixi
to thePATH
. I've tried on 3 different Macs tonight, some new (M1) some old, they all have the same issue.Each one is using the default
zsh
shell. Runningcurl -fsSL https://pixi.sh/install.sh | bash
(or evencurl -fsSL https://pixi.sh/install.sh | zsh
) results in~/.pixi/bin/pixi
being installed, but thePATH
environment variable isn't updated.Debugging this a bit, I notice that machines where people haven't done much setup before don't have
~/.zshrc
, so it's skipping updatingPATH
.Expected behavior
I'd expect
pixi
to become executable. I'm trying to get new users working withpixi
, and this is a blocker for people who are new, and will assume the install failed.Looking at the install script, I wonder if
update_shell()
should be improved to create the file if it's missing?The text was updated successfully, but these errors were encountered: