Mac下显示git分支
# 先来查看一下mac支持的shell:
cat /etc/shells
# List of acceptable shells for chpass(1).
# Ftpd will not allow users to connect who are not using
# one of these shells.
/bin/bash
/bin/csh
/bin/dash
/bin/ksh
/bin/sh
/bin/tcsh
/bin/zsh
# 查看当前使用的shell
echo $SHELL
/bin/bash
# 切换成zsh,重启终端后生效
chsh -s /bin/zsh
# 安装on my zsh,假设你已经安装了git
git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
# 重启一下终端,然后进入到一个git目录中去,就可以看到分支啦。Last updated