summaryrefslogtreecommitdiff
path: root/plugins/github/_github
diff options
context:
space:
mode:
authorNanoTech <nanotech008@gmail.com>2010-10-19 15:39:27 -0600
committerNanoTech <nanotech008@gmail.com>2010-10-19 15:39:27 -0600
commit68f893cbe05e5a84adf7f26a0ed7492af6e03def (patch)
tree81b436518d3552f47a02f44963e84700627d1bec /plugins/github/_github
parent02c5fd5bdd0d37bb0e1cb19ad058154f5b7d96a7 (diff)
parentdc12853b0c3e5af9e42f44cb9efdf57d44d20711 (diff)
downloadzsh-68f893cbe05e5a84adf7f26a0ed7492af6e03def.tar.gz
zsh-68f893cbe05e5a84adf7f26a0ed7492af6e03def.tar.bz2
zsh-68f893cbe05e5a84adf7f26a0ed7492af6e03def.zip
Merge branch 'master' of git://github.com/robbyrussell/oh-my-zsh
Diffstat (limited to 'plugins/github/_github')
-rw-r--r--plugins/github/_github40
1 files changed, 40 insertions, 0 deletions
diff --git a/plugins/github/_github b/plugins/github/_github
new file mode 100644
index 000000000..83e1713c7
--- /dev/null
+++ b/plugins/github/_github
@@ -0,0 +1,40 @@
+#compdef github
+#autoload
+
+# in order to make this work, you will need to have the github gem installed
+# http://github.com/defunkt/github-gem
+
+# github zsh completion, based on homebrew completion
+
+local -a _1st_arguments
+_1st_arguments=(
+ 'browse:Open this repo in a web browser'
+ 'clone:Clone a repo'
+ 'config:Automatically set configuration info, or pass args to specify'
+ 'create-from-local:Create a new GitHub repository from the current local repository'
+ 'create:Create a new empty GitHub repository'
+ 'fetch:Fetch from a remote to a local branch'
+ 'fetch_all:Fetch all refs from a user'
+ 'fork:Forks a GitHub repository'
+ 'home:Open this repos master branch in a web browser'
+ 'ignore:Ignore a SHA from github network commits'
+ 'info:Info about this project'
+ 'issues:Project issues tools'
+ 'network:Project network tools - sub-commands : web [user], list, fetch, commits'
+ 'open:Open the given user/project in a web browser'
+ 'pull-request:Generate the text for a pull request'
+ 'pull:Pull from a remote'
+ 'search:Search GitHub for the given repository name'
+ 'track:Track another users repository'
+)
+
+local expl
+local -a pkgs installed_pkgs
+
+_arguments \
+ '*:: :->subcmds' && return 0
+
+if (( CURRENT == 1 )); then
+ _describe -t commands "github subcommand" _1st_arguments
+ return
+fi