ubuntu / zsh shell / oh-my-zsh / 常用插件

 

记录一下 zsh 的下载与配置,省得每次重装系统都要上网到处查。

 

  • 安装 zsh shell
sudo apt install zsh
  • 切换 shell
chsh -s /bin/zsh
  • 安装 oh-my-zsh
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

或者

sh -c "$(wget https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"
  • 下载 zsh-syntax-highlighting 语法高亮插件
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh}/plugins/zsh-syntax-highlighting
  • 下载 zsh-autosuggestions 自动提示插件
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh}/plugins/zsh-autosuggestions
  • 配置 .zshrc 文件
vim ~/.zshrc
plugins=(git zsh-syntax-highlighting zsh-autosuggestions)

 

posted @ 2019-08-01 16:29  Hongkai_Ding  阅读(1044)  评论(0编辑  收藏  举报