1
0
mirror of https://git.decapod.one/brethil/dotfiles synced 2024-11-24 20:41:31 +01:00

zsh: add conditional insertion for systemd and debian plugins

This commit is contained in:
bretello 2021-04-11 13:09:47 +02:00
parent d99915b642
commit 0cb850b8a4
Signed by: brethil
GPG Key ID: 876AAC6290170FE7
3 changed files with 10 additions and 8 deletions

View File

@ -9,6 +9,7 @@ robbyrussell/oh-my-zsh path:plugins/git
robbyrussell/oh-my-zsh path:plugins/grc
robbyrussell/oh-my-zsh path:plugins/pip
robbyrussell/oh-my-zsh path:plugins/pyenv
robbyrussell/oh-my-zsh path:plugins/pylint
robbyrussell/oh-my-zsh path:plugins/sudo
robbyrussell/oh-my-zsh path:plugins/vi-mode
robbyrussell/oh-my-zsh path:plugins/zsh-navigation-tools

View File

@ -1,2 +0,0 @@
robbyrussell/oh-my-zsh path:plugins/systemd
robbyrussell/oh-my-zsh path:plugins/archlinux

View File

@ -8,17 +8,20 @@ export ZSH_THEME="brethil"
export DISABLE_UNTRACKED_FILES_DIRTY=true
export VIRTUAL_ENV_DISABLE_PROMPT=true
_ZSH_CACHE="${HOME}/.cache/zsh"
if [[ ! -d "${_ZSH_CACHE}" ]]; then mkdir -p "${_ZSH_CACHE}"; fi
# Source all zsh plugins
source <(antibody init)
export ANTIBODY="$(antibody home)"
antibody bundle < "$DOTFILES/antibody_plugins.txt"
uname="$(uname -a)"
if [[ $uname == *"ARCH"* || $uname == *"MANJARO"* ]]; then
antibody bundle < "$DOTFILES/antibody_plugins_arch.txt"
if [[ "$(command -v systemctl)" ]]; then
antibody bundle robbyrussell/oh-my-zsh path:plugins/systemd
fi
if [[ "$(command -v pacman)" ]]; then
antibody bundle robbyrussell/oh-my-zsh path:plugins/archlinux
elif [[ "$(command -v apt)" ]]; then
antibody bundle robbyrussell/oh-my-zsh path:plugins/debian
fi
if [[ -n "$_DOTFILES_EXTRA_PLUGINS" ]]; then
antibody bundle < "$DOTFILES/antibody_plugins_extra.txt"
fi