diff options
Diffstat (limited to 'profile/rust.sh')
-rw-r--r-- | profile/rust.sh | 9 |
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 @@ | |||
1 | execp cargo || return | ||
2 | |||
1 | export RUSTUP_HOME="${XDG_DATA_HOME:=$LOCAL_PREFIX/share}/rustup" | 3 | export RUSTUP_HOME="${XDG_DATA_HOME:=$LOCAL_PREFIX/share}/rustup" |
2 | export CARGO_HOME="${XDG_DATA_HOME:=$LOCAL_PREFIX/share}/cargo" | 4 | export CARGO_HOME="${XDG_DATA_HOME:=$LOCAL_PREFIX/share}/cargo" |
3 | . "$CARGO_HOME/env" # takes care of $PATH for us | 5 | |
6 | path_add_to_PATH "$CARGO_HOME/bin" | ||
7 | |||
8 | if test -f "$CARGO_HOME/env"; then | ||
9 | . "$CARGO_HOME/env" # takes care of $PATH for us | ||
10 | fi | ||