banner
AcoFork

AcoFork

LOVETOLOVE

Installing Oh My Zsh on Deepin

  1. 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
  1. Set the default terminal to zsh (if you are using Deepin terminal, you need to configure it manually)
chsh -s /bin/zsh

image

  1. Install Oh My Zsh
# Official source
sh -c "$(wget -O- https://install.ohmyz.sh/)"
# Domestic mirror
sh -c "$(wget -O- https://gitee.com/pocmon/ohmyzsh/raw/master/tools/install.sh)"
  1. Install haoomz theme
sudo wget -O $ZSH_CUSTOM/themes/haoomz.zsh-theme https://cdn.haoyep.com/gh/leegical/Blog_img/zsh/haoomz.zsh-theme
  1. Enable haoomz theme
nano ~/.zshrc
## Change theme
ZSH_THEME="haoomz"

source ~/.zshrc

image

  1. Install command prediction plugin zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
  1. 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
  1. Change configuration file to enable plugins
nano ~/.zshrc

plugins=(
  git
  zsh-autosuggestions
  zsh-syntax-highlighting
)

source ~/.zshrc

image

  1. All done

image

image

image

image

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.