I don't like apps modifying my .*shrc
Should be a way to do this both on the command line (and in turn from rustup-setup.sh) as well as interactively.
Yes please, I'd prefer if it just told me the directory I need to add to my PATH.
This should be opt-in, not out.
At the very least this needs to be handled gracefully, my ~/.zshrc is marked read-only and trying to install rust-up gives:
→ curl https://sh.rustup.rs -sSf | sh
[...]
error: could not write rcfile file: '/Users/Nemo157/.zshrc' (Permission denied (os error 13))
rustup: command failed: /var/folders/p8/qd22z3cn44dfxcsrm1t4wrfh0000gn/T/tmp.CUqvam57/rustup-setup
EDIT: Luckily just temporarily removing it was enough to persuade rustup to install :smile_cat:.
@Nemo157 Thanks for the report. I've opened a separate issue.
This can be done both on the command line and interactively now.
@brson I don't like that it still modifies your rc file by default. That should be strictly opt-in, IMO. If that's really not possible for some reason, at least change the pre-install message to make it clear that you can opt-out via the advanced options. Right now you'd have to just try it to discover that it's possible to opt-out. Maybe something like, "If you do not want /whatever/.profile modified automatically, choose the advanced installation option."
Perhaps it would be even better to just make it a separate interactive step. "Would you like rustup to automatically update /whatever/.profile to add ~/.cargo to your PATH environment variable? yes/no"
Most helpful comment
This should be opt-in, not out.