]> arthur.barton.de Git - ax-zsh.git/blobdiff - plugins/fzf/fzf.zshrc
Fix handling of legacy terminal types
[ax-zsh.git] / plugins / fzf / fzf.zshrc
index 799fdca3b6500564db04b5d5778b08cf5e963345..4e46e9f5cc16b92bfaeb14d24ef6cb4e629b1de6 100644 (file)
@@ -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