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:
parent
d99915b642
commit
0cb850b8a4
|
@ -9,6 +9,7 @@ robbyrussell/oh-my-zsh path:plugins/git
|
||||||
robbyrussell/oh-my-zsh path:plugins/grc
|
robbyrussell/oh-my-zsh path:plugins/grc
|
||||||
robbyrussell/oh-my-zsh path:plugins/pip
|
robbyrussell/oh-my-zsh path:plugins/pip
|
||||||
robbyrussell/oh-my-zsh path:plugins/pyenv
|
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/sudo
|
||||||
robbyrussell/oh-my-zsh path:plugins/vi-mode
|
robbyrussell/oh-my-zsh path:plugins/vi-mode
|
||||||
robbyrussell/oh-my-zsh path:plugins/zsh-navigation-tools
|
robbyrussell/oh-my-zsh path:plugins/zsh-navigation-tools
|
||||||
|
|
|
@ -1,2 +0,0 @@
|
||||||
robbyrussell/oh-my-zsh path:plugins/systemd
|
|
||||||
robbyrussell/oh-my-zsh path:plugins/archlinux
|
|
|
@ -8,17 +8,20 @@ export ZSH_THEME="brethil"
|
||||||
export DISABLE_UNTRACKED_FILES_DIRTY=true
|
export DISABLE_UNTRACKED_FILES_DIRTY=true
|
||||||
export VIRTUAL_ENV_DISABLE_PROMPT=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 all zsh plugins
|
||||||
source <(antibody init)
|
source <(antibody init)
|
||||||
export ANTIBODY="$(antibody home)"
|
export ANTIBODY="$(antibody home)"
|
||||||
antibody bundle < "$DOTFILES/antibody_plugins.txt"
|
antibody bundle < "$DOTFILES/antibody_plugins.txt"
|
||||||
uname="$(uname -a)"
|
|
||||||
if [[ $uname == *"ARCH"* || $uname == *"MANJARO"* ]]; then
|
if [[ "$(command -v systemctl)" ]]; then
|
||||||
antibody bundle < "$DOTFILES/antibody_plugins_arch.txt"
|
antibody bundle robbyrussell/oh-my-zsh path:plugins/systemd
|
||||||
fi
|
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
|
if [[ -n "$_DOTFILES_EXTRA_PLUGINS" ]]; then
|
||||||
antibody bundle < "$DOTFILES/antibody_plugins_extra.txt"
|
antibody bundle < "$DOTFILES/antibody_plugins_extra.txt"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue
Block a user