Skip to content

Instantly share code, notes, and snippets.

@wilmoore
Last active August 29, 2015 14:22
Show Gist options
  • Save wilmoore/453b59dc2183a0874978 to your computer and use it in GitHub Desktop.
Save wilmoore/453b59dc2183a0874978 to your computer and use it in GitHub Desktop.
Configure and install rust.

Configuration

in your .zshrc or .bashrc
source rust.sh

Install

cd /tmp
curl -O https://static.rust-lang.org/rustup.sh
chmod +x rustup.sh
./rustup.sh --disable-sudo

Uninstall

$RUSTUP_PREFIX/lib/rustlib/uninstall.sh
# to install rust:
# https://gist.github.com/wilmoore/453b59dc2183a0874978#install
# rust install directory.
export RUSTUP_PREFIX=~/.local/opt/rust
# rustup data directory.
export RUSTUP_HOME=$XDG_DATA_HOME/rustup
# add rust binaries to path.
path=(
$RUSTUP_PREFIX/bin
$path
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment