安装

apt install zsh wget git
sh -c "$(wget -O- https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

主题

vim ~/.zshrc

将其中的ZSH_THEME= 后引号的内容改为主题名(推荐ys)

插件

  1. 自动补全zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
  1. 语法高亮zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting

安装完成后去vim ~/.zshrc里的plugins=后的括号里加入插件名称,用空格分隔

启用更改

主题和插件设置完毕后重启zsh

source ~/.zshrc

闲来无事,记录琐事