4 # in order to make this work, you will need to have the github gem installed
5 # http://github.com/defunkt/github-gem
7 # github zsh completion, based on homebrew completion
9 local -a _1st_arguments
11 'browse:Open this repo in a web browser'
13 'config:Automatically set configuration info, or pass args to specify'
14 'create-from-local:Create a new GitHub repository from the current local repository'
15 'create:Create a new empty GitHub repository'
16 'fetch:Fetch from a remote to a local branch'
17 'fetch_all:Fetch all refs from a user'
18 'fork:Forks a GitHub repository'
19 'home:Open this repos master branch in a web browser'
20 'ignore:Ignore a SHA from github network commits'
21 'info:Info about this project'
22 'issues:Project issues tools'
23 'network:Project network tools - sub-commands : web [user], list, fetch, commits'
24 'open:Open the given user/project in a web browser'
25 'pull-request:Generate the text for a pull request'
26 'pull:Pull from a remote'
27 'search:Search GitHub for the given repository name'
28 'track:Track another users repository'
32 local -a pkgs installed_pkgs
35 '*:: :->subcmds' && return 0
37 if (( CURRENT == 1 )); then
38 _describe -t commands "github subcommand" _1st_arguments