From fea3c169bf409f8654476f1719fddef616490e3e Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Fri, 27 Jan 2017 15:56:54 +0100 Subject: [PATCH] fzf: Enhance detection, fail when shell integration is not found --- plugins/fzf/fzf.zshrc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/fzf/fzf.zshrc b/plugins/fzf/fzf.zshrc index 84fe95c..ee51c19 100644 --- a/plugins/fzf/fzf.zshrc +++ b/plugins/fzf/fzf.zshrc @@ -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 -- 2.39.2