🐛 better command check for brew

This commit is contained in:
James Walker 2020-11-03 10:15:48 -05:00
parent a43cc8ce5c
commit 1133a465c0
Signed by: walkah
GPG Key ID: 3C127179D6086E93
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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