My macOS dotfiles and homebrew applications.
🇨🇳 all package manager toools configured china mirror.
Install xcode command line tools:
xcode-select --install
Git clone this repository:
git clone git@github.com:kuops/dotfiles.git
Set command line proxy:
export ALL_PROXY="proxy_ip:port"
export NO_PROXY=".cn,.npmmirror.com,.aliyun.com,localhost,127.0.0.1"
Running script install.sh
:
The script will:
- Install homebrew.
- Set homebrew china mirrors.
- Install popular applications and command line tools.
- Install ohmyzsh and change shell to zsh.
- Install neovim and spacevim settings.
- Set pip,yarn,npm,git,ssh preferences.
- Set Iterm2 plist preferences.
cd dotfiles && bash install.sh
tmux install plugin use tpm:
prefix(ctrl + a) + I
update spacevim plugins:
vim -c SPUpdate
update pip plugins:
pip3 list --outdated --format=freeze | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 pip3 install -U
nvm install other nodejs:
# nvm install nodejs version x
nvm install 8
# switch once version x
nvm use 8
# switch global version x
nvm alias default 8
jenv switch java version
# list versions
jenv versions
# global switch to java 8
jenv global 1.8
# current directory project switch to java 8
jenv local 1.8