Skip to content

Commit

Permalink
Alert to missing fzf rather than error
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenharman committed Aug 24, 2024
1 parent 98d4a8c commit 24bd48f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .fzf.bash
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,9 @@ if [[ ! "$PATH" == *"${HOME}/.fzf/bin"* ]]; then
export PATH="${PATH:+${PATH}:}${HOME}/.fzf/bin"
fi

eval "$(fzf --bash)"

if command -v fzf > /dev/null 2>&1; then
eval "$(fzf --bash)"
else
echo "fzf is not installed; skipping fzf setup for Bash"
fi
6 changes: 5 additions & 1 deletion .fzf.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,8 @@ if [[ ! "$PATH" == *"${HOME}/.fzf/bin"* ]]; then
export PATH="${PATH:+${PATH}:}${HOME}/.fzf/bin"
fi

source <(fzf --zsh)
if command -v fzf > /dev/null 2>&1; then
source <(fzf --zsh)
else
echo "fzf is not installed; skipping fzf setup for Zshell"
fi

0 comments on commit 24bd48f

Please sign in to comment.