From 7e126fe703b3d4b41975759d2c4e4f12270f6e94 Mon Sep 17 00:00:00 2001 From: Eryn Wells Date: Sat, 22 Jan 2022 10:12:21 -0800 Subject: [PATCH] [zsh] Massively improve binary_exists --- zsh/func/binary_exists | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/zsh/func/binary_exists b/zsh/func/binary_exists index f11d16e..21166db 100644 --- a/zsh/func/binary_exists +++ b/zsh/func/binary_exists @@ -1,10 +1,4 @@ -# .zshrc -# vim:ft=zsh: +# Check if ZSH thinks the binary exists # Eryn Wells -function binary_exists -{ - return $(hash $1 1>/dev/null 2>&1) -} - -binary_exists "$@" +hash $1 1>/dev/null 2>&1