From e7d678128ed3e383f6e351dc3d291f6866d050b6 Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Thu, 8 Apr 2021 10:58:32 +0200 Subject: [PATCH] fzf: Newer Debian/Ubuntu packages use a different folder layout --- plugins/fzf/fzf.zshrc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/fzf/fzf.zshrc b/plugins/fzf/fzf.zshrc index be79b98..85bcc37 100644 --- a/plugins/fzf/fzf.zshrc +++ b/plugins/fzf/fzf.zshrc @@ -14,7 +14,11 @@ fi # 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 -- 2.39.2