[zsh] Massively improve binary_exists

This commit is contained in:
Eryn Wells 2022-01-22 10:12:21 -08:00
parent ed13222d7f
commit 7e126fe703

View file

@ -1,10 +1,4 @@
# .zshrc
# vim:ft=zsh:
# Check if ZSH thinks the binary exists
# Eryn Wells <eryn@erynwells.me>
function binary_exists
{
return $(hash $1 1>/dev/null 2>&1)
}
binary_exists "$@"
hash $1 1>/dev/null 2>&1