]> git.rmz.io Git - dotfiles.git/blobdiff - zsh/lib/fzf.zsh
zsh/fzf: test if fzf is in the path
[dotfiles.git] / 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