From 26feec573ce0b0bcb2109d808907b5079b25dc49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20=C5=A0tefka?= Date: Wed, 20 Sep 2023 14:07:01 +0200 Subject: [PATCH] fix(find-the-command): disable find-the-command when pacman not present --- zshrc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/zshrc b/zshrc index a3b57b7..06f7ea3 100644 --- a/zshrc +++ b/zshrc @@ -54,5 +54,9 @@ source $HOME/zsh/web-search/web_search.plugin.zsh 2>/dev/null source $HOME/zsh/oh-my-zsh-dirhistory/dirhistory.plugin.zsh 2>/dev/null source $HOME/zsh/zsh-z/zsh-z.plugin.zsh 2>/dev/null source $HOME/zsh/custom-zshrc 2>/dev/null -source $HOME/zsh/find-the-command/usr/share/doc/find-the-command/ftc.zsh 2>/dev/null alias mon2cam="deno run --unstable -A -r -q https://raw.githubusercontent.com/ShayBox/Mon2Cam/master/src/mod.ts" + +# If on archlinus enable following plugin +if [ -e /bin/pacman ]; then + source $HOME/zsh/find-the-command/usr/share/doc/find-the-command/ftc.zsh 2>/dev/null +fi