Mac配置zsh
修改zsh作为默认shell
cp .bash_profile .zprofile
安装oh-my-zsh
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | sh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
sh -c "$(wget -O- https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
配置plugins
cd .oh-my-zsh/plugins && mkdir incr && cp ~/incr-0.2.zsh ~/.oh-my-zsh/plugins/incr/
source ~/.oh-my-zsh/plugins/incr/incr*.zsh
cd ~ && source .zshrc
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git && mv zsh-syntax-highlighting .oh-my-zsh/plugins/