[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 # Check if ZSH thinks the binary exists
# vim:ft=zsh:
# Eryn Wells <eryn@erynwells.me> # Eryn Wells <eryn@erynwells.me>
function binary_exists hash $1 1>/dev/null 2>&1
{
return $(hash $1 1>/dev/null 2>&1)
}
binary_exists "$@"