🐛 better command check for brew
This commit is contained in:
parent
a43cc8ce5c
commit
1133a465c0
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user