Adjust so this only runs when Homebrew is installed (thanks @nwinkler)
This commit is contained in:
@@ -1,8 +1,11 @@
|
|||||||
if which crystal >/dev/null 2>&1; then
|
if which crystal >/dev/null 2>&1; then
|
||||||
BREW_PREFIX=$(brew --prefix)
|
|
||||||
|
|
||||||
if [ -f "$BREW_PREFIX"/etc/bash_completion.d/crystal ]; then
|
if which brew >/dev/null 2>&1; then
|
||||||
. "$BREW_PREFIX"/etc/bash_completion.d/crystal
|
BREW_PREFIX=$(brew --prefix)
|
||||||
|
|
||||||
|
if [ -f "$BREW_PREFIX"/etc/bash_completion.d/crystal ]; then
|
||||||
|
. "$BREW_PREFIX"/etc/bash_completion.d/crystal
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user