# Test for Debian-specific keybinding location ...
if [[ -r /usr/share/doc/fzf/examples/key-bindings.zsh ]]; then
- source /usr/share/zsh/vendor-completions/_fzf
+ if [[ -r /usr/share/doc/fzf/examples/completion.zsh ]]; then
+ source /usr/share/doc/fzf/examples/completion.zsh
+ elif [[ -r /usr/share/zsh/vendor-completions/_fzf ]]; then
+ source /usr/share/zsh/vendor-completions/_fzf
+ fi
source /usr/share/doc/fzf/examples/key-bindings.zsh
return 0
fi
# Search for and read in FZF ZSH integration files
for dir (
+ "$HOMEBREW_PREFIX"/opt/fzf/shell
/usr/local/lib/fzf/shell
/usr/local/opt/fzf/shell
+ /usr/local/share/examples/fzf/shell
/opt/fzf/shell
+ /usr/share/fzf/shell
); do
[[ -d "$dir" ]] || continue
- source "$dir/completion.zsh"
+ [[ -r "$dir/completion.zsh" ]] && source "$dir/completion.zsh"
source "$dir/key-bindings.zsh"
return 0
done