zsh

sudo apt-get install zsh

# 国内镜像https://gitee.com/mirrors/oh-my-zsh 可修改install.sh中仓库指向
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

# 下载 zsh-syntax-higlighting
# ZSH_CUSTOM: ~/.oh-my-zsh/custom
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $ZSH_CUSTOM/plugins/zsh-syntax-highlighting

# 下载 zsh-autosuggestions
git clone git://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions

# 配置
vim ~/.zshrc

plugins=(其它插件 zsh-syntax-highlighting zsh-autosuggestions)

# 配置生效
source ~/.zshrc
上一篇:c – 参数值的尖括号是什么,它用于什么?


下一篇:Python“if”语句语法错误