diff options
| author | Ralph Giles <giles@mozilla.com> | 2015-04-07 14:05:02 -0700 |
|---|---|---|
| committer | Ralph Giles <giles@mozilla.com> | 2015-04-07 14:05:02 -0700 |
| commit | 9a51c63a2fa4ad38f0ff90649b948d2e5b667d19 (patch) | |
| tree | caee08fa04a668fd52fee8d8cbf0de6205c087fd | |
| parent | 1fd89b625be075e81da1791d6d22e9835512036c (diff) | |
| download | rust-9a51c63a2fa4ad38f0ff90649b948d2e5b667d19.tar.gz rust-9a51c63a2fa4ad38f0ff90649b948d2e5b667d19.zip | |
rustup: let RUSTUP_PREFIX env override default prefix.
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.
| -rwxr-xr-x | src/etc/rustup.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/etc/rustup.sh b/src/etc/rustup.sh index 918c0c66f76..7c207385393 100755 --- a/src/etc/rustup.sh +++ b/src/etc/rustup.sh @@ -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" |
