]> arthur.barton.de Git - ax-zsh.git/commitdiff
fzf: Support more installation locations
authorAlexander Barton <alex@barton.de>
Fri, 27 Jan 2017 14:57:26 +0000 (15:57 +0100)
committerAlexander Barton <alex@barton.de>
Fri, 27 Jan 2017 14:57:26 +0000 (15:57 +0100)
- Loader script in $HOME
- Shell integration in /usr/local/lib/fzf/shell

plugins/fzf/fzf.zshrc

index ee51c1900f4231c4b9fc09832f36e6f7384508f4..7572980f5365a9e9e93ab76523a0d595de6f8d9f 100644 (file)
@@ -1,11 +1,18 @@
 # AX-ZSH: Alex' Modular ZSH Configuration
 # fzf.zshrc: Setup Git
 
+# Test for local fzf installation ...
+if [[ -r ~/.fzf.zsh ]]; then
+       source ~/.fzf.zsh
+       return 0
+fi
+
 # Make sure that "fzf(1)" is installed
 (( $+commands[fzf] )) || return 1
 
 # Search for and read in FZF ZSH integration files
 for dir (
+       /usr/local/lib/fzf/shell
        /usr/local/opt/fzf/shell
 ); do
        [[ -d "$dir" ]] || continue