- 安装 git
sudo apt install git
- 安装 zsh
sudo apt install zsh
- 切换到 zsh
chsh -s /bin/zsh
- 安装 oh-my-zsh
sh -c "$(wget https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"
- 语法高亮插件 highlight
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
修改 ~/.zshrc: plugins=( [...] zsh-syntax-highlighting)
- powerlevel10k 主题
git clone --depth=1 https://gitee.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/themes/powerlevel10k
修改 ~/.zshrc: ZSH_THEME="powerlevel10k/powerlevel10k"
- 使配置文件生效
source ~/.zshrc