本文是使用powerline字体和一些zsh的插件,定制Mac OS上自带的命令行终端工具Terminal,而不是基于iTerm2。
首先查看一下系统是否已经安装了zsh,没有安装则使用brew install zsh安装。
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
切换到zsh并退出终端。
chsh -s /bin/zsh |
退出后重新进入Terminal,再确认当前的shell: