ubuntu 安装 oh-my-zsh
#!/bin/bash
# 安装 oh my zsh
sudo apt-get update
sudo apt-get install -y zsh
zsh --version
sudo sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
sudo chsh -s $(which zsh)
cat >> ~/.bash_profile << EOF
if [[ $- == *i* ]]; then
export SHELL=zsh
exec zsh -l
fi
EOF
source ~/.bash_profile
zsh git目录下很慢
解决方案,进入git项目目录: 禁用git 自动 status命令
```
git config --add oh-my-zsh.hide-dirty 1
```