diff options
author | Roman Kamyk <roman.kamyk@gmail.com> | 2010-10-15 14:49:23 +0200 |
---|---|---|
committer | Roman Kamyk <roman.kamyk@gmail.com> | 2010-10-15 14:49:23 +0200 |
commit | fb6fddda37b7693c0b6f49345e25f8cac66ba9e4 (patch) | |
tree | 3bc1257f4d5403e787c6e6cacb008b49a4d9a38b /plugins | |
parent | f294eeb57175f5ef86f903d41c84ecacd96fe00c (diff) | |
parent | dc12853b0c3e5af9e42f44cb9efdf57d44d20711 (diff) | |
download | zsh-fb6fddda37b7693c0b6f49345e25f8cac66ba9e4.tar.gz zsh-fb6fddda37b7693c0b6f49345e25f8cac66ba9e4.tar.bz2 zsh-fb6fddda37b7693c0b6f49345e25f8cac66ba9e4.zip |
Merge branch 'master' of http://github.com/robbyrussell/oh-my-zsh
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/git/git.plugin.zsh | 2 | ||||
-rw-r--r-- | plugins/github/_github | 40 | ||||
-rw-r--r-- | plugins/github/github.plugin.zsh | 4 |
3 files changed, 45 insertions, 1 deletions
diff --git a/plugins/git/git.plugin.zsh b/plugins/git/git.plugin.zsh index 655eaf728..d317d179d 100644 --- a/plugins/git/git.plugin.zsh +++ b/plugins/git/git.plugin.zsh @@ -12,7 +12,7 @@ alias gb='git branch' alias gba='git branch -a' alias gcount='git shortlog -sn' alias gcp='git cherry-pick' - +alias glg='git log --stat --max-count=5' # Git and svn mix alias git-svn-dcommit-push='git svn dcommit && git push github master:svntrunk' 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 diff --git a/plugins/github/github.plugin.zsh b/plugins/github/github.plugin.zsh new file mode 100644 index 000000000..c23504b85 --- /dev/null +++ b/plugins/github/github.plugin.zsh @@ -0,0 +1,4 @@ +# add github completion function to path +fpath=($ZSH/plugins/github $fpath) +autoload -U compinit +compinit -i |