]> arthur.barton.de Git - ax-zsh.git/blob - plugins/fzf/fzf.zshrc
fzf: Enhance detection, fail when shell integration is not found
[ax-zsh.git] / plugins / fzf / fzf.zshrc
1 # AX-ZSH: Alex' Modular ZSH Configuration
2 # fzf.zshrc: Setup Git
3
4 # Make sure that "fzf(1)" is installed
5 (( $+commands[fzf] )) || return 1
6
7 # Search for and read in FZF ZSH integration files
8 for dir (
9         /usr/local/opt/fzf/shell
10 ); do
11         [[ -d "$dir" ]] || continue
12         source "$dir/completion.zsh"
13         source "$dir/key-bindings.zsh"
14         return 0
15 done
16 return 1