Ubuntu 20.04.2 安装 zsh + oh-my-zsh +自动补全
mr00ff

工具

  • zsh
  • oh-my-zsh
  • auto

步骤

1 安装 zsh

1
sudo apt-get install -y zsh

2 安装 oh-my-zsh

1
2
3
4
sudo apt-get install -y git
sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"
# 切换 shell 脚本为 zsh
sudo chsh -s /bin/zsh

3 安装自动补全 zsh-autosuggestions

1
2
3
4
5
6
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh}/plugins/zsh-autosuggestions
# 编辑 .zshrc
# plugin 增加 zsh-autosuggestions
plugins=(...省略 zsh-autosuggestions)
# 立刻生效
source .zshrc

完成 撒花~

  • 本文标题:Ubuntu 20.04.2 安装 zsh + oh-my-zsh +自动补全
  • 本文作者:mr00ff
  • 创建时间:2021-11-07 00:10:00
  • 本文链接:https://www.sysxo.com/Ubuntu/Ubuntu 安装 zsh.html
  • 版权声明:本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!
 评论