From 98e45c3db3c0468e6e983a31426c842b0d79b851 Mon Sep 17 00:00:00 2001 From: Brian Zalewski Date: Wed, 2 Nov 2022 19:45:22 +0000 Subject: [PATCH] Update dotfiles/.zshrc --- dotfiles/.zshrc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/dotfiles/.zshrc b/dotfiles/.zshrc index f1b0ba0a..653eeade 100644 --- a/dotfiles/.zshrc +++ b/dotfiles/.zshrc @@ -329,9 +329,12 @@ fi zstyle ':autocomplete:*' list-lines 14 zstyle ':autocomplete:history-search:*' list-lines 14 zstyle ':autocomplete:history-incremental-search-*:*' list-lines 14 -zstyle ':autocomplete:*' fzf-completion yes -zstyle ':autocomplete:recent-dirs' backend zoxide - +if command -v fzf > /dev/null; then + zstyle ':autocomplete:*' fzf-completion yes +fi +if command -v zoxide > /dev/null; then + zstyle ':autocomplete:recent-dirs' backend zoxide +fi # oh-my-zsh might be overwriting the ls command so placing it here as well as fix # command -v lsd > /dev/null && alias ls='lsd --group-dirs first' && \