安装zsh
sudo apt install zsh
更换成zsh
执行命令后需要重启电脑
chsh -s /bin/zsh
安装oh-my-zsh
通过wget去官网下载
sh -c "$(wget https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh -O -)"
安装插件
安装提示补充的插件zsh-autosuggestions
在~/.zshrc中添加plugins=(zsh-autosuggestions)
然后执行
git clone https://gitee.com/phpxxo/zsh-autosuggestions.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
安装命令高亮
在~/.zshrc中添加plugins=(zsh-syntax-highlighting)
然后执行
cd ~/.oh-my-zsh/custom/plugins/
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git
补充
之后有些需要注意的是~/.bashrc中的环境变量等等不会在有,需要转移到~/.zshrc
此处评论已关闭