]> arthur.barton.de Git - ax-zsh.git/commitdiff
fzf: Update for new Debian package
authorAlexander Barton <alex@barton.de>
Wed, 12 Sep 2018 14:09:35 +0000 (16:09 +0200)
committerAlexander Barton <alex@barton.de>
Wed, 12 Sep 2018 14:14:26 +0000 (16:14 +0200)
plugins/fzf/fzf.zshrc

index 799fdca3b6500564db04b5d5778b08cf5e963345..bbc1cfa55bf18a2b35c097463e211cb7be1f7e59 100644 (file)
@@ -10,6 +10,13 @@ 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