Created
December 16, 2014 19:02
-
-
Save BernardoSilva/fca1910be362abb3780b to your computer and use it in GitHub Desktop.
Install git autocomplete
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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