Note that you can't just source ag.bashcomp in a command line. Add simlink to it to your bash-completion list or it will not be able to find have helper function.
Add bash-completion support
Neat. I've never messed with bash completion stuff before, and I had no idea how it worked until now.
My only gripe is that make install doesn't set up bash completion. Add that and I think this'll be good to merge.
Make github syntax highlighter recognize language
+1! I love it when tools add completion. Thanks!
Add bash-completion install
Add bash-completion to rpm spec
Added installation to /usr/local/etc/bash_completion.d/ by make install. User probably will have to add symlink to it by hand.
RPM spec will install into %_sysconfdir/bash_completion.d/ (I hope %_sysconfdir == /etc, can't test this). Example was http://git.openvz.org/?p=vzctl;a=blob;f=vzctl.spec
%_sysconfdir == /etc
In Gentoo completion files are installed into /usr/share/bash-completion/ and then user can enable or disable them by eselect. In OpenSUSE they are installed directly to /etc/bash_completion.d/. Other distros may have their own rules.
Cool. I guess that about as good as it can be given the constraints of installing on different distros.