aboutsummaryrefslogtreecommitdiffstats
path: root/_github
diff options
context:
space:
mode:
authorJulien Nicoulaud <julien.nicoulaud@gmail.com>2011-07-22 00:50:51 +0200
committerJulien Nicoulaud <julien.nicoulaud@gmail.com>2011-07-22 00:50:51 +0200
commit80dc17003aba65b451f5d84ba676e4d92d502f72 (patch)
tree9cb2646730e9d57cb85e79f14bb86a52bcb01f2a /_github
parent#22: Add Vagrant completion (diff)
downloadzsh-completions-80dc17003aba65b451f5d84ba676e4d92d502f72.tar
zsh-completions-80dc17003aba65b451f5d84ba676e4d92d502f72.tar.gz
zsh-completions-80dc17003aba65b451f5d84ba676e4d92d502f72.tar.bz2
zsh-completions-80dc17003aba65b451f5d84ba676e4d92d502f72.tar.lz
zsh-completions-80dc17003aba65b451f5d84ba676e4d92d502f72.tar.xz
zsh-completions-80dc17003aba65b451f5d84ba676e4d92d502f72.tar.zst
zsh-completions-80dc17003aba65b451f5d84ba676e4d92d502f72.zip
#23: Add github gem completion
Diffstat (limited to '_github')
-rw-r--r--_github53
1 files changed, 53 insertions, 0 deletions
diff --git a/_github b/_github
new file mode 100644
index 0000000..1cd8729
--- /dev/null
+++ b/_github
@@ -0,0 +1,53 @@
+#compdef github
+# ------------------------------------------------------------------------------
+# Description
+# -----------
+#
+# Completion script for Github gem (https://github.com/defunkt/github-gem).
+#
+# Source: https://github.com/robbyrussell/oh-my-zsh/blob/master/plugins/github
+#
+# ------------------------------------------------------------------------------
+# Authors
+# -------
+#
+# * Sven Lito (https://github.com/svnlto)
+#
+# ------------------------------------------------------------------------------
+# -*- mode: zsh; sh-indentation: 2; indent-tabs-mode: nil; sh-basic-offset: 2; -*-
+# vim: ft=zsh sw=2 ts=2 et
+# ------------------------------------------------------------------------------
+
+
+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