安装zsh & oh my zsh
sudo apt install zshsh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"安装插件
zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions在.zshrc中plugins中添加zsh-autosuggestions
zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting在.zshrc中plugins中添加zsh-syntax-highlighting
配置补全快捷键
将shift + tab配置为接受补全建议
echo "bindkey '^[[Z' autosuggest-accept" >> ~/.zshrc解决autosuggestion显示为白色
echo "export TERM=xterm-256color" >> ~/.zshrc最后一定要source才会生效
source ~/.zshrc