-
Notifications
You must be signed in to change notification settings - Fork 1k
Install script should put rust path in ~/.zprofile on macOS #4772
Copy link
Copy link
Open
Labels
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-darwinOS version
macOS Tahoe version 26.3.1 (a)Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Type
Fields
Give feedbackNo fields configured for issues without a type.