Mac 美化终端
美化终端
1. 下载iTerm2
第一步:打开iTerm2,command + ,调出配置页面

第二步:点击Profiles驱配置

我打算选用Dracula主题
点击Dracula

如果你能够很快的连接github的话,直接在iTerm2中输入:
1 | git clone https://github.com/dracula/iterm.git |
否则可以直接下载dracula中给出的.zip文件。
iTerm2 > Preferences > Profiles > Colors Tab
Open the Color Presets... drop-down in the bottom right corner
Select Import... from the list
Select the
Dracula.itermcolorsfileSelect the Dracula from Color Presets...

导入我们下载的文件即可。
2. 下载oh-my-zsh
一般mac都会自带zsh,可以输入
1 | cat /etc/shells |
如果出现
1 | (base) MacBook-Pro:~ SJCHEN$ cat /etc/shells |
则代表已经有了,如果没有就
1 | brew install zsh |
具体可看配置zsh
这里我不采用默认的主题,
直接在终端运行
1 | git clone https://github.com/spaceship-prompt/spaceship-prompt.git "$ZSH_CUSTOM/themes/spaceship-prompt" --depth=1 |
1 | ln -s "$ZSH_CUSTOM/themes/spaceship-prompt/spaceship.zsh-theme" "$ZSH_CUSTOM/themes/spaceship.zsh-theme" |
然后在访达中command + shift + .打开隐藏文件,打开.zshrc

修改ZSH_THEME =为spaceship即可
