# install oh-my-zsh
git clone --depth=1 https://github.com/ohmyzsh/ohmyzsh.git ~/.oh-my-zsh
git clone https://github.com/cobbled/rcs rcs
ln -s $(pwd)/rcs ~/.rcs
ln -s ~/.rcs/zshenv ~/.zshenv
ln -s ~/.rcs/zshrc ~/.zshrc
ln -s ~/.rcs/robbyrussell-modify.zsh-theme ~/.oh-my-zsh/custom/themes/
git clone --depth=1 https://github.com/junegunn/fzf.git ~/.fzf
~/.fzf/install --key-bindings --completion --update-rc
git clone --depth=1 https://github.com/zsh-users/zsh-autosuggestions ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions
git clone --depth=1 https://github.com/zsh-users/zsh-completions ~/.oh-my-zsh/custom/plugins/zsh-completions
git clone --depth=1 https://github.com/zsh-users/zsh-syntax-highlighting ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting
http://mirrors.ustc.edu.cn/help/rust-static.html
Replace https://sh.rustup.rs RUSTUP_UPDATE_ROOT value to https://mirrors.ustc.edu.cn/rust-static/rustup
export RUSTUP_DIST_SERVER=https://mirrors.ustc.edu.cn/rust-static
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
# install nightly channel
rustup toolchain install nightly
# set nightly as default toolchain
rustup default nightly-x86_64-unknown-linux-gnu
# install cranelift
rustup component add rustc-codegen-cranelift-preview --toolchain nightly
# install and use mold https://github.com/rui314/mold
# add to add to $HOME/.cargo/config
[target.x86_64-unknown-linux-gnu]
rustflags = ["-C", "link-arg=-fuse-ld=$HOME/pkg/mold/bin/mold"]
# install and use cranelift for debug build https://github.com/rust-lang/rustc_codegen_cranelift
# add to $HOME/.cargo/config
[unstable]
codegen-backend = true
[profile.dev]
codegen-backend = "cranelift"
# add to $HOME/.cargo/config
[source.crates-io]
replace-with = 'ustc'
[source.ustc]
registry = "git://mirrors.ustc.edu.cn/crates.io-index"
# pyenv build problems
# https://github.com/yyuu/pyenv/wiki/Common-build-problems
git clone --depth=1 https://github.com/yyuu/pyenv ~/.pyenv
pip config set global.index-url https://mirrors.aliyun.com/pypi/simple
pip config set local.trusted-host mirrors.aliyun.com
# works only on Ubuntu 20.04+
sudo apt install python-is-python3
npm config set registry https://registry.npm.taobao.org
npm config set disturl https://npm.taobao.org/dist
npm config set electron_mirror https://npm.taobao.org/mirrors/electron
Docker CE 源使用帮助 — USTC Mirror Help 文档
sudo apt-get update
sudo apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common
curl -fsSL https://mirrors.ustc.edu.cn/docker-ce/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://mirrors.ustc.edu.cn/docker-ce/linux/ubuntu $(lsb_release -cs) stable"
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io
# manager docker as current user
# warning: The docker group grants privileges equivalent to the root user.
sudo groupadd docker
sudo sudo usermod -aG docker $USER
# use offical docker mirror
# add this to /etc/docker/daemon.json
{"registry-mirrors":["https://registry.docker-cn.com/"]}
Iterm2 -> Preferences -> General
At the bottom of the panel:
Choose Load preferences from a custom folder or URL:
Click the Browse
button at left and choose my iterm2 folder.
Choose Save change to folder when iTerm2 quits.
"useTabSwitcher": false
"keybindings": [
{"command":null,"keys":["alt+enter"]},
{"command":null,"keys":["alt+left"]},
{"command":null,"keys":["alt+right"]},
{"command":null,"keys":["alt+up"]},
{"command":null,"keys":["alt+down"]},
]