about summary refs log tree commit diff stats
path: root/profile/rust.sh
diff options
context:
space:
mode:
Diffstat (limited to 'profile/rust.sh')
-rw-r--r--profile/rust.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/profile/rust.sh b/profile/rust.sh index dd85a65..fa23ae9 100644 --- a/profile/rust.sh +++ b/profile/rust.sh
@@ -1,3 +1,10 @@
1execp cargo || return
2
1export RUSTUP_HOME="${XDG_DATA_HOME:=$LOCAL_PREFIX/share}/rustup" 3export RUSTUP_HOME="${XDG_DATA_HOME:=$LOCAL_PREFIX/share}/rustup"
2export CARGO_HOME="${XDG_DATA_HOME:=$LOCAL_PREFIX/share}/cargo" 4export CARGO_HOME="${XDG_DATA_HOME:=$LOCAL_PREFIX/share}/cargo"
3. "$CARGO_HOME/env" # takes care of $PATH for us 5
6path_add_to_PATH "$CARGO_HOME/bin"
7
8if test -f "$CARGO_HOME/env"; then
9 . "$CARGO_HOME/env" # takes care of $PATH for us
10fi