]> arthur.barton.de Git - ax-zsh.git/blob - plugins/fzf/fzf.zshrc
ssh_macos: Don't error out when no SSH agent is available
[ax-zsh.git] / plugins / fzf / fzf.zshrc
1 # AX-ZSH: Alex' Modular ZSH Configuration
2 # fzf.zshrc: Setup Git
3
4 # Test for local fzf installation ...
5 if [[ -r ~/.fzf.zsh ]]; then
6         source ~/.fzf.zsh
7         return 0
8 fi
9
10 # Make sure that "fzf(1)" is installed
11 (( $+commands[fzf] )) || return 1
12
13 # Search for and read in FZF ZSH integration files
14 for dir (
15         /usr/local/lib/fzf/shell
16         /usr/local/opt/fzf/shell
17 ); do
18         [[ -d "$dir" ]] || continue
19         source "$dir/completion.zsh"
20         source "$dir/key-bindings.zsh"
21         return 0
22 done
23 return 1