[zsh] Massively improve binary_exists
This commit is contained in:
parent
ed13222d7f
commit
7e126fe703
1 changed files with 2 additions and 8 deletions
|
@ -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 "$@"
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue