Skip to content

Commit

Permalink
Add RUSTUP env
Browse files Browse the repository at this point in the history
  • Loading branch information
wizawu committed Nov 21, 2023
1 parent ebd6e7d commit f978145
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,12 @@ swap:
cron:
ansible-playbook cron.yml

rust: export RUSTUP_UPDATE_ROOT = https://mirrors4.tuna.tsinghua.edu.cn/rustup/rustup

rust:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
curl -s https://sh.rustup.rs | \
sed -e 's/dist/archive\/1.26.0/g' | \
sh /dev/stdin -vy --default-toolchain=stable --profile=complete --no-modify-path

proxy:
sudo ansible-playbook proxy.yml
Expand Down
2 changes: 2 additions & 0 deletions dotfiles/bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
export NODE_PATH=/usr/local/lib/node_modules
export PATH=$HOME/.sysconf/bin:$GOPATH/bin:$GRADLE_HOME/bin:$JAVA_HOME/bin:/usr/sbin:$HOME/.cargo/bin:$PATH
export RUSTUP_DIST_SERVER=https://mirrors4.tuna.tsinghua.edu.cn/rustup
export RUSTUP_UPDATE_ROOT=https://mirrors4.tuna.tsinghua.edu.cn/rustup/rustup
export TRASH_DIR=$HOME/.local/share/Trash

# terminal
Expand Down

0 comments on commit f978145

Please sign in to comment.