Skip to content

Commit

Permalink
docs: zsh may be used for installation on macOS (#1091)
Browse files Browse the repository at this point in the history
The installation modified my ` ~/.zshrc` and added the path to `pixi`,
i.e. `export PATH=$PATH:~/.pixi/bin`.

Rational: I had problems with the default installation script because my
bash was broken. It installed a osx-64 instead of osx-arm64 executable
on my M1 MacBook. Going with default shell seems to be sensible.
  • Loading branch information
pya committed Mar 30, 2024
1 parent 36ac560 commit 2ac0d54
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,14 @@ brew install pixi
The script will also update your ~/.bash_profile to include ~/.pixi/bin in your PATH, allowing you to invoke the pixi command from anywhere.
You might need to restart your terminal or source your shell for the changes to take effect.

Starting with macOS Catalina [zsh is the default login shell and interactive shell](https://support.apple.com/en-us/102360). Therefore, you might want to use `zsh` instead of `bash` in the install command:

```zsh
curl -fsSL https://pixi.sh/install.sh | zsh
```

The script will also update your ~/.zshrc to include ~/.pixi/bin in your PATH, allowing you to invoke the pixi command from anywhere.

### Windows

To install Pixi on Windows, open a PowerShell terminal (you may need to run it as an administrator) and run the following command:
Expand Down

0 comments on commit 2ac0d54

Please sign in to comment.