Re: How to setup bash completion for alias of git command

2013-01-20 Thread Ping Yin
On Sun, Jan 20, 2013 at 7:14 PM, Jonathan Nieder jrnie...@gmail.com wrote: Hi Ping, Ping Yin wrote: However, in debian (testing, wheezy), it doesn't work $ gtlg orTAB gtlg or-bash: [: 1: unary operator expected -bash: [: 1: unary operator expected Yes, I can reproduce this. git bisect

Re: How to setup bash completion for alias of git command

2013-01-12 Thread Ping Yin
On Sat, Jan 12, 2013 at 10:30 PM, Ping Yin pkufra...@gmail.com wrote: Following setup works for me in ubuntu (10.04,11.04) for a long time alias gtlg='git log' complete -o default -o nospace -F _git_log gtlg However, in debian (testing, wheezy), it doesn't work $ gtlg orTAB gtlg or-bash: