一次性安装配置zsh的脚本【只需两步,适合国内网络环境】
#!/bin/bash
sudo apt update
sudo apt install zsh wget git -y
wget https://gitee.com/matthew1757405148/my_scripts/raw/master/install_zsh/install.sh
chmod +x install.sh
./install.sh
#!/bin/bash
export ZSH_CUSTOM=$ZSH_CUSTOM
git clone https://gitee.com/hailin_cool/zsh-autosuggestions.git $ZSH_CUSTOM/plugins/zsh-autosuggestions
git clone https://gitee.com/Annihilater/zsh-syntax-highlighting.git $ZSH_CUSTOM/plugins/zsh-syntax-highlighting
sed -i 's/plugins=(git)/plugins=(git zsh-syntax-highlighting zsh-autosuggestions)/g' ~/.zshrc
sed -i 's/ZSH_THEME="[^"]*"/ZSH_THEME="ys"/g' ~/.zshrc
"]*"/ZSH_THEME="powerlevel10k\/powerlevel10k"/g' ~/.zshrc
source ~/.zshrc