X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=plugins%2Ffzf%2Ffzf.zshrc;h=4e46e9f5cc16b92bfaeb14d24ef6cb4e629b1de6;hb=602d2931b1cd78bbfb75a4e1fd8de7e6a8553689;hp=799fdca3b6500564db04b5d5778b08cf5e963345;hpb=b0085b5862a64a0fc8854ee5a3ff6ad379038a78;p=ax-zsh.git diff --git a/plugins/fzf/fzf.zshrc b/plugins/fzf/fzf.zshrc index 799fdca..4e46e9f 100644 --- a/plugins/fzf/fzf.zshrc +++ b/plugins/fzf/fzf.zshrc @@ -1,6 +1,8 @@ # AX-ZSH: Alex' Modular ZSH Configuration # fzf.zshrc: Setup Git +axzsh_is_modern_terminal || return 91 + # Test for local fzf installation ... if [[ -r ~/.fzf.zsh ]]; then source ~/.fzf.zsh @@ -10,6 +12,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