- Mac 用户看:Mac 安装 oh-my-zsh
安装 zsh
-
https://github.com/ohmyzsh/ohmyzsh/wiki/Installing-ZSH
# 查看系统已有 shell chsh -l # 如果没有 zsh sudo apt install zsh # 将终端默认 shell 切换到 zsh(输入 chsh -l 看到的路径) chsh -s /bin/zsh # 新开一个终端确认是否切换成功 echo $SHELL
安装 oh-my-zsh
- 官网:https://ohmyz.sh
- 若安装时遇到网络问题:GitHub 加速访问
安装插件
- git clone 到 .oh-my-zsh/custom/plugins
- autojump
- Ubuntu:sudo apt install autojump
- Centos:yum install autojump-zsh
- 到 ~/.zshrc 文件启用插件
plugins=(git autojump zsh-autosuggestions zsh-syntax-highlighting)