hugoloza / googlecl

Automatically exported from code.google.com/p/googlecl
0 stars 0 forks source link

Provide bash and zsh completion #73

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Type "google" and then the TAB key

What is the expected output? What do you see instead?

It should display all the possible commands for "google" (for bash and zsh if 
possible).

What version of the product are you using? On what operating system?

Debian package 0.9.5-1

Original issue reported on code.google.com by nao...@gmail.com on 19 Jun 2010 at 11:22

GoogleCodeExporter commented 9 years ago
Here's a quick and dirty start to a bash_completion script.

Original comment by oni...@gmail.com on 19 Jun 2010 at 5:00

Attachments:

GoogleCodeExporter commented 9 years ago
Is this something that should get installed in /etc/bash_completion.d?  Do you 
know if there's a special way to do that in the debian/ config?

Original comment by jh...@google.com on 19 Jun 2010 at 10:46

GoogleCodeExporter commented 9 years ago
Yes, it should be installed as /etc/bash_completion.d/google

For the Debian part, you can install it with something like "install -m 644 
bash_completion_file $(CURDIR)/debian/google/etc bash_completion.d/google" 
inside debian/rules, dh_install, or a "install" file inside debian/, for 
example.

Where can the Debian source package be found, please3

Original comment by nao...@gmail.com on 19 Jun 2010 at 11:01

GoogleCodeExporter commented 9 years ago
"install -m 644 bash_completion_file 
$(CURDIR)/debian/google/etc/bash_completion.d/google"

Small typo, sorry.

Original comment by nao...@gmail.com on 19 Jun 2010 at 11:05

GoogleCodeExporter commented 9 years ago
http://github.com/bobthecow/googlecl-completion

Original comment by justinhi...@gmail.com on 21 Jun 2010 at 11:26

GoogleCodeExporter commented 9 years ago
@naoliv: What about the Zsh completion script ? Where should it be installed ?

Original comment by primo...@gmail.com on 28 Jun 2010 at 3:01

GoogleCodeExporter commented 9 years ago

Original comment by tom.h.mi...@gmail.com on 24 Jul 2010 at 2:19

GoogleCodeExporter commented 9 years ago
What about command completion in the google command line interface? (what comes 
up when you just type 'google' once installed)  Easy to do if the local client 
knows the list of documents.

google docs edit Lis<tab> 
Liszt
List of Things to Do
Lisa's favorites

Original comment by ThomasBallinger on 2 Aug 2010 at 9:20

GoogleCodeExporter commented 9 years ago
Please add zsh completion.

Original comment by ss401...@gmail.com on 16 Sep 2011 at 5:30

GoogleCodeExporter commented 9 years ago
As root (not sudo), this directly installs the current version on github.com:

install -m 644 <(curl -s 
https://raw.github.com/bobthecow/googlecl-completion/master/googlecl-completion.
bash) /etc/bash_completion.d/google

Original comment by theManCh...@gmail.com on 18 Apr 2012 at 7:24