Mac 美化终端

美化终端

1. 下载iTerm2

第一步:打开iTerm2,command + ,调出配置页面

第二步:点击Profiles驱配置

我打算选用Dracula主题

点击Dracula

如果你能够很快的连接github的话,直接在iTerm2中输入:

1
git clone https://github.com/dracula/iterm.git

否则可以直接下载dracula中给出的.zip文件。

  1. iTerm2 > Preferences > Profiles > Colors Tab

  2. Open the Color Presets... drop-down in the bottom right corner

  3. Select Import... from the list

  4. Select the Dracula.itermcolors file

  5. Select the Dracula from Color Presets...

导入我们下载的文件即可。

2. 下载oh-my-zsh

一般mac都会自带zsh,可以输入

1
cat /etc/shells

如果出现

1
2
3
4
5
6
7
8
9
10
11
12
(base) MacBook-Pro:~ SJCHEN$ 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

则代表已经有了,如果没有就

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即可