安装zsh
sudo apt install zsh
curl -fsSL https://gitee.com/mirrors/oh-my-zsh/raw/master/tools/install.sh -o install.sh
chmod u+x install.sh
sed -i '73c REMOTE=${REMOTE:-https://gitee.com/${REPO}.git}' install.sh
sed -i '72c REPO=${REPO:-mirrors/oh-my-zsh}' install.sh
./install.sh
安装oh-my-zsh,powerlevel10k
#!/usr/bin/zsh
git clone --depth=1 https://gitee.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
git clone https://gitee.com/mirror-hub/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
git clone https://gitee.com/chenweizhen/zsh-autosuggestions.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
sed -i '11c ZSH_THEME="powerlevel10k/powerlevel10k"' ${HOME}/.zshrc
sed -i '73c plugins=(git zsh-syntax-highlighting zsh-autosuggestions extract z pip sudo )' ${HOME}/.zshrc
source ${HOME}/.zshrc