]> git.rmz.io Git - dotfiles.git/commitdiff
zsh/fzf: test if fzf is in the path
authorSamir Benmendil <me@rmz.io>
Thu, 5 Apr 2018 12:30:20 +0000 (13:30 +0100)
committerSamir Benmendil <me@rmz.io>
Thu, 5 Apr 2018 12:30:20 +0000 (13:30 +0100)
zsh/lib/fzf.zsh

index 6f0b81ff3062166f31451012be720cb6e490bc8b..b9188d6189e459fd90915a55a41bee12813c00f8 100755 (executable)
@@ -1,4 +1,4 @@
-if [[ ! -x /usr/bin/fzf ]]; then
+if ! hash fzf 2>/dev/null; then
     echo '`fzf` is not installed.'
     return
 fi