Skip to content

Instantly share code, notes, and snippets.

@BernardoSilva
Created December 16, 2014 19:02
Show Gist options
  • Save BernardoSilva/fca1910be362abb3780b to your computer and use it in GitHub Desktop.
Save BernardoSilva/fca1910be362abb3780b to your computer and use it in GitHub Desktop.
Install git autocomplete
#!/bin/bash
# Download the magic file.
curl https://raw.githubusercontent.com/git/git/master/contrib/completion/git-completion.bash -o ~/.git-completion.bash
# Add to ~/.bash_profile file the following 'execute if it exists' code:
cat <<EOT >> ~/.bash_profile
if [ -f ~/.git-completion.bash ]; then
. ~/.git-completion.bash
fi
EOT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment