Skip to content

Commit e57410c

Browse files
committed
Auto merge of #24171 - rillian:rustup, r=brson
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.
2 parents 0e5e669 + 9a51c63 commit e57410c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/etc/rustup.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ BOOL_OPTIONS=""
286286
VAL_OPTIONS=""
287287

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

0 commit comments

Comments
 (0)