Friday, January 8, 2010

How to use git-completion on my openSUSE #1

Default repositories of openSUSE don't contain git-completion.bash So I manually integrate it into my openSUSE like below:

  1. Download the latest git-completion.bash from here
  2. save git-completion.bash in local: e.g. /etc/git-completion.bash
  3. In the /etc/bash.bashrc.local, write test -s /etc/git-completion.bash && . /etc/git-completion.bash

Then I can use git completion - git commands, branches, remote sites and so on. to be continued...

No comments:

Post a Comment