]> arthur.barton.de Git - ax-zsh.git/commitdiff
fzf: Enhance detection, fail when shell integration is not found
authorAlexander Barton <alex@barton.de>
Fri, 27 Jan 2017 14:56:54 +0000 (15:56 +0100)
committerAlexander Barton <alex@barton.de>
Fri, 27 Jan 2017 14:56:54 +0000 (15:56 +0100)
plugins/fzf/fzf.zshrc

index 84fe95c4dee2899491e20a6b6597940c6aff1e2f..ee51c1900f4231c4b9fc09832f36e6f7384508f4 100644 (file)
@@ -2,7 +2,7 @@
 # fzf.zshrc: Setup Git
 
 # Make sure that "fzf(1)" is installed
-(( $+commands[fzf] )) || return
+(( $+commands[fzf] )) || return 1
 
 # Search for and read in FZF ZSH integration files
 for dir (
@@ -11,5 +11,6 @@ for dir (
        [[ -d "$dir" ]] || continue
        source "$dir/completion.zsh"
        source "$dir/key-bindings.zsh"
-       break
+       return 0
 done
+return 1