diff --git a/plugins.zsh b/plugins.zsh index 19e0ef7..019cab7 100644 --- a/plugins.zsh +++ b/plugins.zsh @@ -6,17 +6,27 @@ antibody bundle zdharma/fast-syntax-highlighting antibody bundle zsh-users/zsh-autosuggestions antibody bundle zsh-users/zsh-history-substring-search antibody bundle zsh-users/zsh-completions -antibody bundle marzocchi/zsh-notify antibody bundle buonomo/yarn-completion -antibody bundle jimeh/zsh-peco-history antibody bundle rupa/z +if [[ "$DISPLAY" != '' ]] && command -v xdotool > /dev/null 2>&1 && command -v wmctrl > /dev/null 2>&1; then + antibody bundle marzocchi/zsh-notify +fi +if command -v peco > /dev/null 2>&1; then + antibody bundle jimeh/zsh-peco-history +fi antibody bundle ohmyzsh/ohmyzsh path:plugins/command-not-found antibody bundle ohmyzsh/ohmyzsh path:plugins/common-aliases antibody bundle ohmyzsh/ohmyzsh path:plugins/debian -antibody bundle ohmyzsh/ohmyzsh path:plugins/fzf -antibody bundle ohmyzsh/ohmyzsh path:plugins/git -antibody bundle ohmyzsh/ohmyzsh path:plugins/postgres +if command -v fzf > /dev/null 2>&1; then + antibody bundle ohmyzsh/ohmyzsh path:plugins/fzf +fi +if command -v git > /dev/null 2>&1; then + antibody bundle ohmyzsh/ohmyzsh path:plugins/git +fi +if command -v psql > /dev/null 2>&1; then + antibody bundle ohmyzsh/ohmyzsh path:plugins/postgres +fi antibody bundle ohmyzsh/ohmyzsh path:plugins/sudo antibody bundle ohmyzsh/ohmyzsh path:plugins/systemd antibody bundle ohmyzsh/ohmyzsh path:plugins/vim-interaction