Re: Command arguments autocompletion

2009-10-13 Thread Matteo Riva
On Tue, Oct 13, 2009 at 7:03 PM, Tzafrir Cohen wrote: > The code for that is through programmable bash completion: > >  /etc/bash_completion      - the base "scriptlet" >  /etc/bash_completion.d/*  - extensions by various packages [snip] Thank you very much Tzarfir. -- To UNSUBSCRIBE, email to

Re: Command arguments autocompletion

2009-10-13 Thread Tzafrir Cohen
On Tue, Oct 13, 2009 at 02:24:17PM +0200, Matteo Riva wrote: > I noticed that in a shell I can use tab-complete even on command > arguments, as in: > > $ aptitude sa > > will expand to > > $ aptitude safe-upgrade > > How does this work? Where does bash look for possible completion > candid

Re: Command arguments autocompletion

2009-10-13 Thread Reinaldo Orrego
On Tue, Oct 13, 2009 at 9:24 AM, Matteo Riva wrote: > I noticed that in a shell I can use tab-complete even on command > arguments, as in: > >  $ aptitude sa > > will expand to > >  $ aptitude safe-upgrade > > How does this work?  Where does bash look for possible completion > candidates?  Has it

Command arguments autocompletion

2009-10-13 Thread Matteo Riva
I noticed that in a shell I can use tab-complete even on command arguments, as in: $ aptitude sa will expand to $ aptitude safe-upgrade How does this work? Where does bash look for possible completion candidates? Has it always been like this or is this a recently new feature (I could swea