First take on zsh-completion functionality for gclient.

It's very basic, only subcommands.

If this would evolve, generation of _gclient should be automized (like a separate command
or some other tool.)

Review URL: http://codereview.chromium.org/546069

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@36521 0039d316-1c4b-4281-b951-d872f2087c98
This commit is contained in:
antonm@chromium.org
2010-01-19 12:05:40 +00:00
parent e4af1ab4cf
commit 41cdced81d
2 changed files with 21 additions and 0 deletions

6
zsh-goodies/README Normal file
View File

@@ -0,0 +1,6 @@
Various utilities for zsh.
_gclient:
completion for gclient command.
To install add a path to zsh-goodies into your fpath variable, e.g.:
fpath=(<path to depot_tools>/zsh-goodies $fpath)

15
zsh-goodies/_gclient Normal file
View File

@@ -0,0 +1,15 @@
#compdef gclient
_values commands \
cleanup \
config \
diff \
export \
help \
pack \
status \
sync \
update \
revert \
runhooks\
revinfo