update rustup mirror

This commit is contained in:
xfy
2024-10-15 09:40:18 +08:00
parent 5f86aebb2d
commit 5467151a86

View File

@ -1,5 +1,3 @@
# Add deno completions to search path
if [[ ":$FPATH:" != *":/home/xfy/.zsh/completions:"* ]]; then export FPATH="/home/xfy/.zsh/completions:$FPATH"; fi
export ZSH="$HOME/.oh-my-zsh"
ZSH_THEME="powerlevel10k/powerlevel10k"
plugins=(git zsh-autosuggestions zsh-syntax-highlighting zsh-vi-mode fzf-tab)
@ -38,8 +36,8 @@ fi
export DVM_DIR="/Users/xfy/.dvm"
export PATH="$DVM_DIR/bin:$PATH"
# rust
export RUSTUP_UPDATE_ROOT=https://mirrors.tuna.tsinghua.edu.cn/rustup/rustup
export RUSTUP_DIST_SERVER=https://mirrors.tuna.tsinghua.edu.cn/rustup
export RUSTUP_UPDATE_ROOT=https://mirrors.tuna.tsinghua.edu.cn/rustup/rustup
# lazygit config location and theme
export CONFIG_DIR="$HOME/.config/lazygit"
export LG_CONFIG_FILE="$CONFIG_DIR/config.yml,$CONFIG_DIR/mocha-pink.yml"
@ -154,4 +152,12 @@ load-nvmrc() {
fi
}
. "/home/xfy/.deno/env"
# Add deno completions to search path
if [[ $OSTYPE == "darwin"* ]]; then
if [[ ":$FPATH:" != *":/Users/xfy/.zsh/completions:"* ]]; then export FPATH="/Users/xfy/.zsh/completions:$FPATH"; fi
. "/Users/xfy/.deno/env"
fi
if [[ $OSTYPE == "linux"* ]]; then
if [[ ":$FPATH:" != *":/home/xfy/.zsh/completions:"* ]]; then export FPATH="/home/xfy/.zsh/completions:$FPATH"; fi
. "/home/xfy/.deno/env"
fi