]> arthur.barton.de Git - ax-zsh.git/blobdiff - plugins/fzf/fzf.zshrc
fzf: Update for new Debian package
[ax-zsh.git] / plugins / fzf / fzf.zshrc
index 7572980f5365a9e9e93ab76523a0d595de6f8d9f..bbc1cfa55bf18a2b35c097463e211cb7be1f7e59 100644 (file)
@@ -10,10 +10,18 @@ fi
 # Make sure that "fzf(1)" is installed
 (( $+commands[fzf] )) || return 1
 
+# Test for Debian-specific keybinding location ...
+if [[ -r /usr/share/doc/fzf/examples/key-bindings.zsh ]]; then
+       source /usr/share/zsh/vendor-completions/_fzf
+       source /usr/share/doc/fzf/examples/key-bindings.zsh
+       return 0
+fi
+
 # Search for and read in FZF ZSH integration files
 for dir (
        /usr/local/lib/fzf/shell
        /usr/local/opt/fzf/shell
+       /opt/fzf/shell
 ); do
        [[ -d "$dir" ]] || continue
        source "$dir/completion.zsh"