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