git completion of commands in bash prompt

I followed the instructions here https://github.com/git/git/blob/master/contrib/completion/git-completion.bash

but to me this line

source ~/.git-completion.sh

works without the “.” 

so

source ~/git-completion.sh

(beforehand I made this file executable chmod +x git-completion.sh)

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s