From 75c47072f969ae062845d4405b0721257b8d0ffe Mon Sep 17 00:00:00 2001 From: Andrey Astafyev Date: Wed, 21 Dec 2022 09:42:47 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A3=D1=81=D0=BB=D0=BE=D0=B2=D0=B8=D1=8F=20?= =?UTF-8?q?=D0=B4=D0=BB=D1=8F=20=D0=B7=D0=B0=D0=B3=D1=80=D1=83=D0=B7=D0=BA?= =?UTF-8?q?=D0=B8=20=D0=BF=D0=BB=D0=B0=D0=B3=D0=B8=D0=BD=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 45-plugins.zsh | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/45-plugins.zsh b/45-plugins.zsh index 79883a5..2a95ec2 100644 --- a/45-plugins.zsh +++ b/45-plugins.zsh @@ -19,15 +19,28 @@ fi zinit snippet OMZL::clipboard.zsh zinit snippet OMZL::key-bindings.zsh zinit snippet OMZL::termsupport.zsh -zinit snippet OMZP::autojump -zinit snippet OMZP::command-not-found + +if command -v autojump > /dev/null 2>&1; then + zinit snippet OMZP::autojump +fi +if [ -x /usr/lib/command-not-found ]; then + zinit snippet OMZP::command-not-found +fi zinit snippet OMZP::common-aliases zinit snippet OMZP::debian zinit snippet OMZP::isodate -zinit snippet OMZP::mosh -zinit snippet OMZP::nmap -zinit snippet OMZP::pre-commit -zinit snippet OMZP::rsync +if command -v mosh > /dev/null 2>&1; then + zinit snippet OMZP::mosh +fi +if command -v nmap > /dev/null 2>&1; then + zinit snippet OMZP::nmap +fi +if command -v pre-commit > /dev/null 2>&1; then + zinit snippet OMZP::pre-commit +fi +if command -v rsync > /dev/null 2>&1; then + zinit snippet OMZP::rsync +fi zinit snippet OMZP::vscode zinit snippet OMZP::web-search if command -v git-lfs > /dev/null 2>&1; then