From 41cdced81d816baed825e4ee037358d51b5a03e8 Mon Sep 17 00:00:00 2001 From: "antonm@chromium.org" Date: Tue, 19 Jan 2010 12:05:40 +0000 Subject: [PATCH] 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 --- zsh-goodies/README | 6 ++++++ zsh-goodies/_gclient | 15 +++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 zsh-goodies/README create mode 100644 zsh-goodies/_gclient diff --git a/zsh-goodies/README b/zsh-goodies/README new file mode 100644 index 000000000..a032d18f8 --- /dev/null +++ b/zsh-goodies/README @@ -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=(/zsh-goodies $fpath) diff --git a/zsh-goodies/_gclient b/zsh-goodies/_gclient new file mode 100644 index 000000000..8c9144cf4 --- /dev/null +++ b/zsh-goodies/_gclient @@ -0,0 +1,15 @@ +#compdef gclient + +_values commands \ + cleanup \ + config \ + diff \ + export \ + help \ + pack \ + status \ + sync \ + update \ + revert \ + runhooks\ + revinfo