[zsh] Convert binary_exists into a function declared inside the script

This commit is contained in:
Eryn Wells 2023-03-27 09:25:48 -07:00
parent e805062df5
commit 75d8059bde

View file

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