From: Samir Benmendil Date: Thu, 5 Apr 2018 12:30:20 +0000 (+0100) Subject: zsh/fzf: test if fzf is in the path X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/6801327bac2e1031120ecad2fe7864cfb46b970e zsh/fzf: test if fzf is in the path --- diff --git a/zsh/lib/fzf.zsh b/zsh/lib/fzf.zsh index 6f0b81f..b9188d6 100755 --- a/zsh/lib/fzf.zsh +++ b/zsh/lib/fzf.zsh @@ -1,4 +1,4 @@ -if [[ ! -x /usr/bin/fzf ]]; then +if ! hash fzf 2>/dev/null; then echo '`fzf` is not installed.' return fi