1、显示所在分支提示插件:
zsh
- Install:
sudo apt install zsh
- Check current shell
echo $SHELL
- Switch the default shell
chsh -s $(which zsh)
- 重启后
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)
2、输入错误提示插件
Powerlevel10k
- 安装插件
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
- 修改zshrc文件
vim ~/.zshrc
plugins=(
# other plugins...
zsh-autosuggestions
)
- 激活,或者进入zsh
source ~/.zshrc
3、高亮插件
cd ~/Downloads
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git
echo "source ${(q-)PWD}/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> ${ZDOTDIR:-$HOME}/.zshrc
source ~/.zshrc