Merge pull request #1230 from Bash-it/feature/add-crystal

Add Crystal auto-completion on Mac
pull/1143/head^2
Travis Swicegood 2018-12-02 20:51:09 -06:00 committed by GitHub
commit 703105c562
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,11 @@
if which crystal >/dev/null 2>&1; then
if which brew >/dev/null 2>&1; then
BREW_PREFIX=$(brew --prefix)
if [ -f "$BREW_PREFIX"/etc/bash_completion.d/crystal ]; then
. "$BREW_PREFIX"/etc/bash_completion.d/crystal
fi
fi
fi