curl https://raw.githubusercontent.com/git/git/master/contrib/completion/git-completion.bash -o ~/.git-completion.bash
Add the following code to file ~/.bash_profile :
if [ -f ~/.git-completion.bash ]; then
. ~/.git-completion.bash
fi
Give the script permission to run:chmod -X ~/.git-completion.bash
Close and open a new shell. Done!
No comments:
Post a Comment