Skip to content

Instantly share code, notes, and snippets.

@lemonlatte
Forked from denis/gist:48774
Created June 26, 2012 02:45
Show Gist options
  • Save lemonlatte/2992936 to your computer and use it in GitHub Desktop.
Save lemonlatte/2992936 to your computer and use it in GitHub Desktop.
This is the way to add git-completion from source
cd /tmp
git clone git://git.kernel.org/pub/scm/git/git.git
cd git
git checkout v`git --version | awk '{print $3}'`
cp contrib/completion/git-completion.bash ~/.git-completion.bash
cd ~
rm -rf /tmp/git
echo -e "source ~/.git-completion.bash" >> .profile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment