Install script should put rust path in ~/.zprofile on macOS
Open
Nobody has claimed this yet.
bug
- Dominant language
- Rust
- Stars
- 7k
- Forks
- 1.1k
- Avg merge
- 22h 40m
- Merged PRs (30d)
- 46
Description
Verification
- I searched for recent similar issues at https://github.com/rust-lang/rustup/issues?q=is%3Aissue and found no duplicates.
- I am on the latest version of Rustup according to https://github.com/rust-lang/rustup/tags and am still able to reproduce my issue.
Problem
Running the installation script from the rust-lang.org install page on macOS adds . "$HOME/.cargo/env" to ~/.profile rather than ~/.zprofile where it needs to be to work.
Steps
- Run
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh - Restart Terminal, without manually sourcing the
~/.profilefile. - Rust will not run until
~/.profileis manually sourced or. "$HOME/.cargo/env"is moved to~/.zprofile.
Possible Solution(s)
Have the setup script add . "$HOME/.cargo/env" to ~/.zprofile instead of ~/.profile on macOS specifically.
Notes
No response
Rustup version
rustup 1.29.0 (28d1352db 2026-03-05)
Installed toolchains
stable-aarch64-apple-darwin
OS version
macOS Tahoe version 26.3.1 (a)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the installer entry point at https://sh.rustup.rs and locate the logic that adds . "$HOME/.cargo/env" to ~/.profile. Reproduce the documented installation on macOS, then verify that the setup uses ~/.zprofile there while behavior on other platforms remains unchanged.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100