From 10ac710d7cf6f7f5f02eb1227ba5ef1f76d97295 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Tue, 9 Jun 2020 21:39:51 +0100 Subject: [PATCH] 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 91d7ca50056777dfcc7147c57f00fd35b318843e. This should quicker than using the `find` command and locating the file within the `/usr` directory. References #9 --- tag-zsh/zsh/configs/plugins.zsh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tag-zsh/zsh/configs/plugins.zsh b/tag-zsh/zsh/configs/plugins.zsh index f381dea..d2d88d6 100644 --- a/tag-zsh/zsh/configs/plugins.zsh +++ b/tag-zsh/zsh/configs/plugins.zsh @@ -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