From 60b32b776db32a4d7ab26e535bc249a7387096e6 Mon Sep 17 00:00:00 2001 From: Kevin Cotugno Date: Mon, 3 Oct 2022 06:52:23 -0700 Subject: [PATCH] Only use fzf plugin if command is present --- .zshrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.zshrc b/.zshrc index 52429e9..286104d 100644 --- a/.zshrc +++ b/.zshrc @@ -10,7 +10,6 @@ if [[ -f "$oh_my_zsh/oh-my-zsh.sh" ]]; then export plugins=( themes - fzf git ) @@ -19,6 +18,7 @@ if [[ -f "$oh_my_zsh/oh-my-zsh.sh" ]]; then plugins+=(tmux) fi + if [[ $(command -v fzf) ]]; then plugins+=(fzf); fi if [[ $(command -v systemctl) ]]; then plugins+=(systemd)