Yes, that's what i thought. When you type "git branch <tab><tab>", it gives you a list of branches. If you type "git branch -<tab><tab>", it gives you the list of options that apply to branch.
In the same idea, "lttng start <tab><tab>" should give you a list of existing sessions (TODO), but "lttng start -<tab><tab>" should give you the list of options that apply to start. Simon On Tue, Jan 24, 2012 at 12:18, David Goulet <[email protected]> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Actually Simon, forget it. It's perfectly fine like that. Since there is only > "--*" options in the second level, a simple: > > lttng create -<double tab>, works perfectly fine. And I checked, it's standard > way to go since you could do file auto completion and we don't want that mixed > with options. > > I'll add this in the upstream very soon. > > Thanks a lot! > David > > On 12-01-24 12:05 PM, David Goulet wrote: >> Hi Simon, >> >> This works like a charm except for one thing. >> >> For the first level (only "lttng"), if I <double tab>, all possibilities are >> print out, which is very nice but for the second level, not working :(. >> >> Is it possible to add the automatic print of all available options? >> >> Thanks >> David >> >> On 12-01-23 11:17 PM, Simon Marchi wrote: >>> Hi, >> >>> This is my first or so version of the programmable bash completion >>> (tab completion) for the LTTng 2.0 command line tool: >> >>> http://git.dorsal.polymtl.ca/~smarchi?p=lttng-bash-completion.git;a=blob;f=lttng;hb=HEAD >> >>> Currently, it is able to complete general options (before the >>> command), the command names and command-specific options (after the >>> command). The patch I sent earlier today for lttng-tools is needed for >>> the completion to work, so if you want to try it, you can either wait >>> for it to be merged or apply it yourself. >> >>> Install instructions for Debian-based distros: >> >>> 1- Make sure that the bash-completion package is installed on your system >>> 2- Copy the file in /etc/bash_completion.d >>> 3- Type source /etc/bash_completion >> >>> In the future, it would be interesting to be able to complete session >>> names, channel names, and maybe perf counter names, which look like a >>> big headache to type by hand. >> >>> Comments are welcome. >> >>> Thanks, >> >>> Simon >> >>> _______________________________________________ >>> lttng-dev mailing list >>> [email protected] >>> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev > > _______________________________________________ > lttng-dev mailing list > [email protected] > http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.10 (GNU/Linux) > > iQEcBAEBAgAGBQJPHuf0AAoJEELoaioR9I02VbsIALlCI1g5r14JfDMWxt9FFgPf > E/ZUS3GR8VxfdA92KgapnM0aAM66VuwkIKm2QtXdHhyQa31iwsc41O2LITs+V8Ko > YBM2s+KGfN2YZg2FF/3OQcQFOpn+V3vUQdh0UIk/mEGPbYJqVdQ853p4FlsQKFmf > 28q4OMril2OVwT81Xt45Twy+pjcc7Gj+zxedSAmp8WL1UigO8Gl9kKpBNyoeeciX > Y1FevxRwcUw6HN1YjYWWk4vvwqZbGS4XuuPjgiZTsLqRYlSt9MZLT7r0ksy9JCHc > J5cPCtmwbVpHbI/ZbXzCUFjJUuusUDZ4szc2baOYm0PGN9QV05NKdu7PFGQoIGc= > =moTA > -----END PGP SIGNATURE----- _______________________________________________ lttng-dev mailing list [email protected] http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
