Only use fzf plugin if command is present

This commit is contained in:
Kevin Cotugno 2022-10-03 06:52:23 -07:00
parent 23fca4d56c
commit 60b32b776d

2
.zshrc
View File

@ -10,7 +10,6 @@ if [[ -f "$oh_my_zsh/oh-my-zsh.sh" ]]; then
export plugins=( export plugins=(
themes themes
fzf
git git
) )
@ -19,6 +18,7 @@ if [[ -f "$oh_my_zsh/oh-my-zsh.sh" ]]; then
plugins+=(tmux) plugins+=(tmux)
fi fi
if [[ $(command -v fzf) ]]; then plugins+=(fzf); fi
if [[ $(command -v systemctl) ]]; then if [[ $(command -v systemctl) ]]; then
plugins+=(systemd) plugins+=(systemd)