Skip to content

Commit

Permalink
rustup: let RUSTUP_PREFIX env override default prefix.
Browse files Browse the repository at this point in the history
The idea here is if you don't want rust in /usr/local
you can put something like this is your .profile:

export RUSTUP_PREFIX=$HOME/.local/rust
export PATH=$PATH:${RUSTUP_PREFIX}/bin
export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:${RUSTUP_PREFIX}/lib

Then when you run rustup, it will update the install
in ${RUSTUP_PREFIX} without having to remember to pass
an explicit --prefix argument every time.
  • Loading branch information
rillian committed Apr 7, 2015
1 parent 1fd89b6 commit 9a51c63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/etc/rustup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ BOOL_OPTIONS=""
VAL_OPTIONS=""

flag uninstall "only uninstall from the installation prefix"
valopt prefix "" "set installation prefix"
valopt prefix "${RUSTUP_PREFIX}" "set installation prefix"
valopt date "" "use the YYYY-MM-DD nightly instead of the current nightly"
valopt channel "beta" "use the selected release channel [beta]"
flag save "save the downloaded nightlies to ~/.rustup"
Expand Down

0 comments on commit 9a51c63

Please sign in to comment.