From 38c3b21a85b45ca1ff4096e89b41b0f0eb5291fa Mon Sep 17 00:00:00 2001 From: bretello Date: Thu, 27 Feb 2020 18:32:19 +0100 Subject: [PATCH] add conditional linux oh-my-zsh plugins loading --- antibody_plugins_arch.txt | 2 ++ brethil_dotfile.sh | 7 +++++++ 2 files changed, 9 insertions(+) create mode 100644 antibody_plugins_arch.txt diff --git a/antibody_plugins_arch.txt b/antibody_plugins_arch.txt new file mode 100644 index 0000000..a6c511b --- /dev/null +++ b/antibody_plugins_arch.txt @@ -0,0 +1,2 @@ +robbyrussell/oh-my-zsh path:plugins/systemd +robbyrussell/oh-my-zsh path:plugins/archlinux diff --git a/brethil_dotfile.sh b/brethil_dotfile.sh index b6ce26f..edd7c03 100755 --- a/brethil_dotfile.sh +++ b/brethil_dotfile.sh @@ -4,8 +4,15 @@ env DISABLE_UPDATE_PROMPT=$DISABLE_UPDATE_PROMPT DOTFILES=$DOTFILES zsh -f $DOTF autoload -Uz compinit compinit ZSH=$(antibody path robbyrussell/oh-my-zsh) +source <(antibody init) +export ZSH=$(antibody path robbyrussell/oh-my-zsh) antibody bundle < $DOTFILES/antibody_plugins.txt +uname="$(uname -a)" +if [[ $uname == *"ARCH"* || $uname == *"MANJARO"* ]]; then + antibody bundle < $DOTFILES/antibody_plugins_arch.txt +fi + # Enable zsh autocorrection setopt CORRECT_ALL