How to manage ohmyzsh plugins with antigen

Before proceeding, make sure ohmyzsh is installed and working properly!

Install antigen

macOS homebrew

brew install antigen

Configure antigen

More precisely, configure .zshrc

After installing antigen, find its path, then modify .zshrc to add the following content

# Load antigen
source /opt/homebrew/share/antigen/antigen.zsh  # Path for antigen installed via brew

# Load oh-my-zsh
antigen use oh-my-zsh

# Install plugins
antigen bundle command-not-found
antigen bundle zsh-users/zsh-syntax-highlighting
antigen bundle zsh-users/zsh-autosuggestions
antigen bundle zsh-users/zsh-completions

# Install theme
antigen theme robbyrussell

# Apply the above commands
antigen apply

After saving, source the zshrc

source ~/.zshrc

Then in the terminal you will see

➜  /Users source ~/.zshrc
Seems robbyrussell/oh-my-zsh is already installed!
Seems zsh-users/zsh-syntax-highlighting is already installed!
Seems zsh-users/zsh-autosuggestions is already installed!
Seems zsh-users/zsh-completions is already installed!

References