【Notes】Mac从零开始按照oh my zsh


  1. 配置好相关代理,保证连github顺畅
  2. 安装brew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/liguiying/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"
  1. 安装zsh
brew install zsh
chsh -s /bin/zsh
  1. 安装oh my zsh
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
  1. 安装插件
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $ZSH_CUSTOM/plugins/zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-autosuggestions.git $ZSH_CUSTOM/plugins/zsh-autosuggestions
#安装主题powerlevel10k
git clone --depth=1 https://gitee.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k

编辑~/.zshrc
添加

plugins=(git zsh-syntax-highlighting zsh-autosuggestions)
ZSH_THEME="powerlevel10k/powerlevel10k"