Skip to content

Instantly share code, notes, and snippets.

@brunoziie
Created September 3, 2019 18:33
Show Gist options
  • Save brunoziie/82dc6bae40083952b04d60d169d17314 to your computer and use it in GitHub Desktop.
Save brunoziie/82dc6bae40083952b04d60d169d17314 to your computer and use it in GitHub Desktop.
[ -f /usr/local/etc/bash_completion ] && . /usr/local/etc/bash_completion || {
# if not found in /usr/local/etc, try the brew --prefix location
[ -f "$(brew --prefix)/etc/bash_completion.d/git-completion.bash" ] && \
. $(brew --prefix)/etc/bash_completion.d/git-completion.bash
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment