Skip to content

Instantly share code, notes, and snippets.

@fzdwx
Last active November 30, 2022 08:33
Show Gist options
  • Save fzdwx/03410da9fcf8f1887c973acf62775811 to your computer and use it in GitHub Desktop.
Save fzdwx/03410da9fcf8f1887c973acf62775811 to your computer and use it in GitHub Desktop.
install script collect

oh my zsh

repo https://github.com/ohmyzsh/ohmyzsh

sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)

fzf

repo https://github.com/junegunn/fzf

git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf
~/.fzf/install

rust

echo 'export RUSTUP_DIST_SERVER="https://rsproxy.cn"' >> ~/.zshrc
echo 'export RUSTUP_UPDATE_ROOT="https://rsproxy.cn/rustup"' >> ~/.zshrc
source ~/.zshrc

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

echo '[source.crates-io]' >> ~/.cargo/config
echo 'replace-with = "rsproxy"' >> ~/.cargo/config
echo '' >> ~/.cargo/config
echo '[source.rsproxy]' >> ~/.cargo/config
echo 'registry = "https://rsproxy.cn/crates.io-index"' >> ~/.cargo/config
echo '' >> ~/.cargo/config
echo '[registries.rsproxy]' >> ~/.cargo/config
echo 'index = "https://rsproxy.cn/crates.io-index"' >> ~/.cargo/config
echo '' >> ~/.cargo/config
echo '[net]' >> ~/.cargo/config
echo 'git-fetch-with-cli = true' >> ~/.cargo/config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment