安装oh my zsh,并按安装插件zsh-autosuggestions自动补全命令

汝开畅
2023-12-01
git clone https://github.com/ohmyzsh/ohmyzsh.git ~/.oh-my-zsh
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
vim ~/.zshrc
source ~/.zshrc
sudo apt install zsh
chsh -s /bin/zsh

修改.zshrc的时候将ZSH_THEME=“gnzh”

cd ~/.oh-my-zsh/custom/plugins
git clone https://github.com/zsh-users/zsh-autosuggestions
vim ~/.zshrc
source ~/.zshrc

plugins=(git) 添加插件-> plugins=(git zsh-autosuggestions)

 类似资料: