- Update software sources and install zsh and basic dependencies
# Update software sources
sudo apt update && sudo apt upgrade -y
# Install zsh git curl wget
sudo apt install zsh git curl wget -y
- Set default terminal to zsh (if you are using Deepin Terminal, manual configuration is required)
chsh -s /bin/zsh
- Install Oh My Zsh
# Official source
sh -c "$(wget -O- https://install.ohmyz.sh/)"
# Chinese mirror
sh -c "$(wget -O- https://gitee.com/pocmon/ohmyzsh/raw/master/tools/install.sh)"
- Install haoomz theme
sudo wget -O $ZSH_CUSTOM/themes/haoomz.zsh-theme https://cdn.haoyep.com/gh/leegical/Blog_img/zsh/haoomz.zsh-theme
- Enable haoomz theme
nano ~/.zshrc
## Change theme
ZSH_THEME="haoomz"
source ~/.zshrc
- Install command prediction plugin zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
- Install command validation plugin zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
- Modify the configuration file to enable plugins
nano ~/.zshrc
plugins=(
git
zsh-autosuggestions
zsh-syntax-highlighting
)
source ~/.zshrc
- Congratulations on your success