mirror of
https://github.com/DefectingCat/dotfiles
synced 2025-07-15 16:51:36 +00:00
update rustup mirror
This commit is contained in:
14
zsh/zshrc
14
zsh/zshrc
@ -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
|
||||
|
Reference in New Issue
Block a user