Zsh
1.安装zsh[编辑 | 编辑源代码]
apt install zsh
2.安装oh my zsh[编辑 | 编辑源代码]
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
3.安装插件[编辑 | 编辑源代码]
# 终端提示 git clone https://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions # 语法高亮 git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $ZSH_CUSTOM/plugins/zsh-syntax-highlighting
4.修改配置文件[编辑 | 编辑源代码]
sed -i 's/^plugins=.*/plugins=(git zsh-syntax-highlighting zsh-autosuggestions)/' ~/.zshrc
source ~/.zshrc