]> git.lizzy.rs Git - rust.git/commit
rustup: let RUSTUP_PREFIX env override default prefix.
authorRalph Giles <giles@mozilla.com>
Tue, 7 Apr 2015 21:05:02 +0000 (14:05 -0700)
committerRalph Giles <giles@mozilla.com>
Tue, 7 Apr 2015 21:05:02 +0000 (14:05 -0700)
commit9a51c63a2fa4ad38f0ff90649b948d2e5b667d19
treecaee08fa04a668fd52fee8d8cbf0de6205c087fd
parent1fd89b625be075e81da1791d6d22e9835512036c
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.
src/etc/rustup.sh