From 1133a465c08ebbd59102dc0cc8f08f138e3e372f Mon Sep 17 00:00:00 2001 From: James Walker Date: Tue, 3 Nov 2020 10:15:48 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20better=20command=20check=20for?= =?UTF-8?q?=20brew?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- home/.zshenv | 2 +- home/.zshrc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/home/.zshenv b/home/.zshenv index 7f82939..2d247aa 100644 --- a/home/.zshenv +++ b/home/.zshenv @@ -15,7 +15,7 @@ export CVS_RSH=ssh [ -f $HOME/.environment ] && . $HOME/.environment # Load asdf -if [ type brew &> /dev/null ]; then +if command -v brew &> /dev/null; then . $(brew --prefix asdf)/asdf.sh else . ~/.asdf/asdf.sh diff --git a/home/.zshrc b/home/.zshrc index d429b7f..9f3647e 100644 --- a/home/.zshrc +++ b/home/.zshrc @@ -53,7 +53,7 @@ if [ -d ~/Library/Android/sdk ]; then fi # zsh autosuggestions -if [ type brew &> /dev/null ]; then +if command -v brew &> /dev/null; then zsh_autosuggestions=$(brew --prefix)/share/zsh-autosuggestions/zsh-autosuggestions.zsh if [ -f $zsh_autosuggestions ]; then source $zsh_autosuggestions