I have Git (version 1.7.2.5) bash compeletion working on my Debian squeeze (6.0). Git was installed with aptitude and I am using standard debian's bash
, which supports command line autocompletion.
Now, I just installed Git (1.5.6.5) on an other machine (Lenny/Debian 5.0) and the there is no autocompletion.
Why is Git autocomplete not working on the second machine? How do I diagnose this?
What is making completion work on my machine? I have looked for the file
git-completion.bash
but it doesn't seem to be on my machine. How does Git complete ever work?How can I bring git complete to the other machine?
source /etc/bash_completion.d/git
it should enable it in the current shell. If it does, check your bash init scripts. – Hadwyn