Install Antigen for ZSH
At the time of writing (March 2020), the version of ZSH Antigen included in Mint's apt was not up-to-date, here's how to install it directly.
Contents
Seems the version of zsh-antigen that's included in apt isn't up to date and can cause errors when opening a new session in Mint.
Remove Antigen installed via apt
If you've installed Antigen via apt, remove it:
sudo apt remove zsh-antigen
Download Antigen
-
Create a directory:
sudo mkdir /usr/share/zsh-antigen
-
Download
antigen.zsh
directly:-
Before you do this next step, verify that git.io/antigen takes you to https://raw.githubusercontent.com/zsh-users/antigen/master/bin/antigen.zsh (trust no one), then:
sudo curl -o /usr/share/zsh-antigen/antigen.zsh -sL git.io/antigen
-
Configure
- Edit
.zshrc
in your favorite text editor-
Add the following near the top:
source /usr/share/zsh-antigen/antigen.zsh
-
Near the bottom:
antigen apply
-
Any antigen theme you want to install would go somewhere between those two lines... something like:
source /usr/share/zsh-antigen/antigen.zsh # A bunch of other config stuff here # and maybe more stuff here antigen theme romkatv/powerlevel10k # That previous line is the theme I'm using antigen apply
-
Finish it
- Restart the CLI sessions (close and open the terminal)
- Follow the prompts (if any)