1.先安装zsh
2.再安装oh my zsh, github 链接:https://github.com/robbyrussell/oh-my-zsh 里面有安装教程
3.打开terminal自动切换:在.bashrc中添加一行:exec /usr/bin/zsh
4.更改风格:在 .zshrc 里面可以更改theme af-magic
5.使用插件
git
github (前提是需要安装hub)
empty_gh
- Creates a new empty repo (with a README.md
) and pushes it to GitHub
new_gh
- Initializes an existing directory as a repo and pushes it to GitHub
exist_gh
- Takes an existing repo and pushes it to GitHub