dotfiles/zsh/func/binary_exists

10 lines
143 B
Bash

# .zshrc
# vim:ft=zsh:
# Eryn Wells <eryn@erynwells.me>
function binary_exists
{
return $(hash $1 1>/dev/null 2>&1)
}
binary_exists "$@"