[zsh] Convert binary_exists into a function declared inside the script
This commit is contained in:
parent
e805062df5
commit
75d8059bde
1 changed files with 7 additions and 2 deletions
|
@ -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 "$@"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue