On Mon, Jul 15, 2013 at 4:19 PM, Carlos Santana <csantan...@gmail.com>wrote:

> Sweet !
> I was thinking on doing this also. Thanks!
>
> I saved it as a gist for now.
> I also have the same for git commands if someone is interested
>
> https://gist.github.com/csantanapr
>
> I see that the one I have for git use "complete -o default -o nospace -F"
>
> Ian Do you know what - default and - nospace add to the mix, I tried to
> google couldn't figure it out.
>

-o nospace tells complete not to put a space at the end of the completed
word -- I actually need to do that on directory completion for
cordova.completion.

-o default tells complete to use filenames from the current directory if it
can't generate any completions.

(Technically, -o default means to delegate to the readline library to
supply completions, and readline looks for matching filenames)

Ian

>
> --Carlos
>
>
> On Mon, Jul 15, 2013 at 2:44 PM, Filip Maj <f...@adobe.com> wrote:
>
> > Thanks Ian! Make that three beers coming your way
> >
> > On 7/15/13 9:42 AM, "Brian LeRoux" <b...@brian.io> wrote:
> >
> > >Oh this rules, thanks so much Ian, I'll add to those beers!
> > >
> > >On Mon, Jul 15, 2013 at 9:33 AM, Michael Brooks
> > ><mich...@michaelbrooks.ca> wrote:
> > >> Beautiful Ian!
> > >>
> > >> This has been on my backlog of tasks, so I'm happy to see that you've
> > >> spearheaded it.
> > >>
> > >> I'll give the completion and shot and see how it works. I'll also buy
> > >>you a
> > >> beer if you're coming to Portland this week!
> > >>
> > >> Michael
> > >>
> > >>
> > >> On Mon, Jul 15, 2013 at 7:59 AM, Ian Clelland
> > >><iclell...@chromium.org>wrote:
> > >>
> > >>> Thanks, guys!
> > >>>
> > >>> Let me know what's broken :)
> > >>>
> > >>> Ian
> > >>>
> > >>>
> > >>> On Mon, Jul 15, 2013 at 8:52 AM, Lucas Holmquist <
> lholm...@redhat.com
> > >>> >wrote:
> > >>>
> > >>> > coolio,  i will be trying this
> > >>> > On Jul 15, 2013, at 1:06 AM, Kerri Shotts <kerrisho...@gmail.com>
> > >>>wrote:
> > >>> >
> > >>> > >
> > >>> > > Nice! I'll definitely be trying it out on my system!
> > >>> > >
> > >>> > >
> > >>> > >
> > >>> > >
> > >>> > >
> > >>> > > ___________________________________
> > >>> > > Kerri Shotts
> > >>> > > photoKandy Studios, LLC
> > >>> > >
> > >>> > > On the Web: [http://www.photokandy.com/:
> > >>><http://www.photokandy.com/>]
> > >>> > >
> > >>> > > Social Media:
> > >>> > > Twitter: @photokandy, [http://twitter.com/photokandy:
> > >>> > > <http://twitter.com/photokandy>]
> > >>> > > Tumblr: [http://photokandy.tumblr.com/:
> > >>> > > <http://photokandy.tumblr.com/>]
> > >>> > > Github: [https://github.com/kerrishotts:
> > >>> > > <https://github.com/kerrishotts>]
> > >>> > > [https://github.com/organizations/photokandyStudios:
> > >>> > > <https://github.com/organizations/photokandyStudios>]
> > >>> > > CoderWall: [https://coderwall.com/kerrishotts:
> > >>> > > <https://coderwall.com/kerrishotts>]
> > >>> > >
> > >>> > > Apps on the Apple Store:
> > >>> > > [https://itunes.apple.com/us/artist/photokandy-studios-
> > >>> > > llc/id498577828: <https://itunes.apple.com/us/artist/photokandy-
> > >>> > > studios-llc/id498577828>]
> > >>> > >
> > >>> > > Books:
> > >>> > >
> > >>>[http://www.packtpub.com/phonegap-2-mobile-application-hotshot/book:
> > >>> > >
> > >>><http://www.packtpub.com/phonegap-2-mobile-application-hotshot/book>]
> > >>> > > [http://www.packtpub.com/phonegap-social-app-development/book:
> > >>> > > <http://www.packtpub.com/phonegap-social-app-development/book>]
> > >>> > >
> > >>> > >
> > >>> > >
> > >>> > > So, after spending two days typing out cordova-cli command lines
> by
> > >>> > > hand
> > >>> > > (nice long ones like "cordova plugin rm
> > >>> > > org.apache.cordova.core.file-transfer", mostly), I finally broke
> > >>>down
> > >>> > > and
> > >>> > > added proper completion for my shell.
> > >>> > >
> > >>> > > I've created a JIRA issue to hold the code, as a "New Feature"
> > >>>ticket.
> > >>> > > I'm
> > >>> > > not planning on committing anything like this until it's had a
> bit
> > >>> > > wider
> > >>> > > exposure, if people find it useful.
> > >>> > >
> > >>> > > I've been using it daily since writing it, and a few others here
> > >>>have
> > >>> > > tried
> > >>> > > it, and their feedback has made it more useful and stable.
> > >>> > >
> > >>> > > It's CB-4200, if anybody wants to try it. Source it in your
> .bashrc
> > >>> > > file on
> > >>> > > OS X, or add it to /etc/bash_completion.d on debian-based
> systems.
> > >>> > >
> > >>> > > Ian
> > >>> > >
> > >>> >
> > >>> >
> > >>>
> >
> >
>
>
> --
> Carlos Santana
> <csantan...@gmail.com>
>

Reply via email to