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 wrote: > Hi Ping, > > Ping Yin wrote: >> >> However, in debian (testing, wheezy), it doesn't work >> >> $ gtlg or >> gtlg or-bash: [: 1: unary operator expected >> -bash: [: 1: unary operator expected > > Yes, I can reproduce this. "git bisect" tel

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

2013-01-20 Thread Jonathan Nieder
Hi Ping, Ping Yin 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 or > gtlg or-bash: [: 1: unary operator expected > -bash

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 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 or > gtlg or-bash: [: 1: unary o