iTerm2
先下 iTerm2,这是一个比 Mac 自带终端好用的终端,功能方面比较强大。
item2: https://www.iterm2.com/
下载安装后打开会发现和自带的 Terminal 差不多,就是背景变黑了。
oh-my-zsh
安装 oh-my-zsh 其实是安装 zsh 这个 shell,只不过 zsh 会有一些好看的主题,默认的主题就是 robbyrussell。这个主题其实已经比较好看了。
复制下面的命令到终端里就可以安装 oh-my-zsh 了。
sh -c “$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)”
安装完后会发现终端变成这样:
这时你会发现,你的终端和图片里的颜色还是不太对,下面就调整一下配色。
配色
首先进入下面的地址去 git clone
或者直接下载 .zip 文件,然后解压缩。
地址: https://github.com/mbadolato/iTerm2-Color-Schemes
回到 iTerm2,进入偏好设置 cmd + ,
。依次选中 Profile -> Colors