安装Homebrew

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

安装zsh

brew install zsh

安装iTerm2

方法一 官网安装

点击前往下载 iTerm2

方法二 brew安装

 brew cask install iterm2

安装oh-my-zsh

curl 安装

sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

wget 安装

sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"

安装Powerlevel10k主题

下载 powerlevel10k

git clone --depth=1 https://gitee.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k

下载添加在 ~/.zshrc 里添加  ZSH_THEME="powerlevel10k/powerlevel10k"

个性化 powerlevel10k

p10k configure

配置完成后会生成一个配置文件 ~/.p10k.zsh,并且在 ~/.zshrc 中自动添加如下配置信息

# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注