This repository has been archived on 2022-03-28. You can view files and clone it, but cannot push or open issues or pull requests.
prezto/plugins/github/_github

42 lines
1.3 KiB
Plaintext
Raw Normal View History

2010-10-09 09:29:24 -04:00
#compdef github
#autoload
2011-08-30 23:16:15 -04:00
# The github-gem is neccessary for this completion to work.
2010-10-09 13:38:01 -04:00
# http://github.com/defunkt/github-gem
2011-08-30 23:16:15 -04:00
# This completion is based on the Homebrew completion.
2010-10-09 09:29:24 -04:00
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
2011-08-30 23:16:15 -04:00