Skip to content

Instantly share code, notes, and snippets.

View abellmann's full-sized avatar

Andreas Bellmann abellmann

  • OPITZ CONSULTING Deutschland GmbH
View GitHub Profile
@abellmann
abellmann / install-git-completion.sh
Created July 25, 2011 21:00 — forked from johngibb/install-git-completion.sh
Mac OS X - Install Git Completion
GIT_VERSION=`git --version | awk '{print $3}'`
URL="https://raw.github.com/git/git/v$GIT_VERSION/contrib/completion/git-completion.bash"
PROFILE="$HOME/.profile"
echo "Downloading git-completion for git version: $GIT_VERSION..."
if ! curl "$URL" --silent --output "$HOME/.git-completion.bash"; then
echo "ERROR: Couldn't download completion script. Make sure you have a working internet connection." && exit 1
fi