From: Yin Ping Date: Sun, 21 Oct 2007 06:33:26 GMT Subject: Re: [PATCH] On error, do not list all commands, but point to --help option. Message-ID: <46dff0320710202333g70b022f4r6574e93aa0463065@mail.gmail.com> In-Reply-To: <20071021032953.GC14735@spearce.org> On 10/21/07, Shawn O. Pearce wrote: > Jeff King wrote: > > On Sat, Oct 20, 2007 at 10:06:53PM -0400, Shawn O. Pearce wrote: > > > > > I actually had to do `git config alias.upsh push` just to keep > > > myself from screaming every time I made a small typo and Git gave > > > me a screenful of "helpful reminders". > > > > Yeah, somebody should really work on bash completion... > > $ git pu > pull push > > By the time I type out "pus" and hit tab I've already typed out > the name "push ". Except I frequently find myself getting the > u before the p, which can't complete. Of course with the above > alias in place "git u" completes out uniquely to "git push " > (between bash completion and the alias expansion). > > But that alias isn't there for my bash tab completion. Its there > exactly because otherwise "git upsh" gives me 31 lines of useless > (to me) output without it. > My way to resolve this is to define some alias begenning with 'gt' for frequently used commands, such as 'gtps -> git-push, gtpl -> git-pull, gtco->git-checkout, gtci->git-commit, gtbr->git-branch'. so that when i type 'gt', only commands that i frequently use are listed. -- franky