zsh: Switch path to antigen.zsh based on OS

Switch the path to the antigen.zsh file (for loading ZSH plugins) based
on the OS (i.e. macOS and Linux) using the functions added in
91d7ca5005.

This should quicker than using the `find` command and locating the file
within the `/usr` directory.

References #9
This commit is contained in:
Oliver Davies 2020-06-09 21:39:51 +01:00
parent 211ea05c0e
commit 10ac710d7c

View file

@ -1,4 +1,8 @@
source "$HOME/.antigen.zsh"
if is_macos; then
source /usr/local/share/antigen/antigen.zsh
elif is_linux; then
source /usr/share/zsh-antigen/antigen.zsh
fi
antigen bundle mollifier/cd-gitroot
antigen bundle zsh-users/zsh-autosuggestions