1、设定zsh为默认shell
查看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/ksh
/bin/sh
/bin/tcsh
/bin/zsh
设定默认shell为zsh
$ chsh -s /bin/zsh
$ sudo reboot
$ echo $SHELL
/bin/zsh
2、 安装 oh-my-zsh
安装 git
$ brew install git
安装 oh-my-zsh
$ wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | sh
若不想要oh-my-zsh 可用命令卸载
$ uninstall_oh_my_zsh
3、 安装powerline
$ pip3 install powerline-status