From ba04ed4f22eacc9a7cf7caa005a79e62300e54c6 Mon Sep 17 00:00:00 2001 From: Andrey Astafyev Date: Sat, 4 Apr 2020 23:40:58 +0300 Subject: [PATCH] =?UTF-8?q?=D0=97=D0=B0=D0=B3=D1=80=D1=83=D0=B7=D0=BA?= =?UTF-8?q?=D0=B0=20=D0=BF=D0=BB=D0=B0=D0=B3=D0=B8=D0=BD=D0=BE=D0=B2,=20?= =?UTF-8?q?=D0=B5=D1=81=D0=BB=D0=B8=20=D0=BD=D0=B0=D0=B9=D0=B4=D0=B5=D0=BD?= =?UTF-8?q?=D1=8B=20=D1=81=D0=BE=D0=BE=D1=82=D0=B2=D0=B5=D1=82=D1=81=D1=82?= =?UTF-8?q?=D0=B2=D1=83=D1=8E=D1=89=D0=B8=D0=B5=20=D0=BF=D1=80=D0=BE=D0=B3?= =?UTF-8?q?=D1=80=D0=B0=D0=BC=D0=BC=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins.zsh | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) 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