安装zsh
sudo apt-get install zsh
将shell改为zsh
chsh -s /bin/zsh
下载oh my zsh
sh -c "$(curl -fsSL https://gitee.com/mirrors/oh-my-zsh/raw/master/tools/install.sh)"
安装好了,推荐两个插件
git clone https://github.com/zsh-users/zsh-autosuggestions.git $ZSH_CUSTOM/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM}/plugins/zsh-syntax-highlighting
修改.zshrc
vim ~/.zshrc
找到plugins=(git),改为
plugins=(
git
zsh-autosuggestions
zsh-syntax-highlighting
)
保存后执行
source ~/.zshrc
评论区