🐛 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
|
[ -f $HOME/.environment ] && . $HOME/.environment
|
||||||
|
|
||||||
# Load asdf
|
# Load asdf
|
||||||
if [ type brew &> /dev/null ]; then
|
if command -v brew &> /dev/null; then
|
||||||
. $(brew --prefix asdf)/asdf.sh
|
. $(brew --prefix asdf)/asdf.sh
|
||||||
else
|
else
|
||||||
. ~/.asdf/asdf.sh
|
. ~/.asdf/asdf.sh
|
||||||
|
@ -53,7 +53,7 @@ if [ -d ~/Library/Android/sdk ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# zsh autosuggestions
|
# 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
|
zsh_autosuggestions=$(brew --prefix)/share/zsh-autosuggestions/zsh-autosuggestions.zsh
|
||||||
if [ -f $zsh_autosuggestions ]; then
|
if [ -f $zsh_autosuggestions ]; then
|
||||||
source $zsh_autosuggestions
|
source $zsh_autosuggestions
|
||||||
|
Loading…
x
Reference in New Issue
Block a user