Diff
1diff --git a/plugins/git/git.plugin.zsh b/plugins/git/git.plugin.zsh
2index 655eaf728de883e37884ad328b45bc8104d7c53d..d317d179d8ec7bce0ecf600ec237d5c754f47215 100644
3--- a/plugins/git/git.plugin.zsh
4+++ b/plugins/git/git.plugin.zsh
5@@ -12,7 +12,7 @@ alias gb='git branch'
6 alias gba='git branch -a'
7 alias gcount='git shortlog -sn'
8 alias gcp='git cherry-pick'
9-
10+alias glg='git log --stat --max-count=5'
11
12 # Git and svn mix
13 alias git-svn-dcommit-push='git svn dcommit && git push github master:svntrunk'
14diff --git a/plugins/github/_github b/plugins/github/_github
15new file mode 100644
16index 0000000000000000000000000000000000000000..b8e1a9ada2be46ce3580e51dfd2237270c8bfa34
17--- /dev/null
18+++ b/plugins/github/_github
19@@ -0,0 +1,40 @@
20+# in order to make this work, you would need to have the github gem installed
21+# http://github.com/defunkt/github-gem
22+
23+#compdef github
24+#autoload
25+
26+# github zsh completion, based on homebrew completion
27+
28+local -a _1st_arguments
29+_1st_arguments=(
30+ 'browse:Open this repo in a web browser'
31+ 'clone:Clone a repo'
32+ 'config:Automatically set configuration info, or pass args to specify'
33+ 'create-from-local:Create a new GitHub repository from the current local repository'
34+ 'create:Create a new empty GitHub repository'
35+ 'fetch:Fetch from a remote to a local branch'
36+ 'fetch_all:Fetch all refs from a user'
37+ 'fork:Forks a GitHub repository'
38+ 'home:Open this repos master branch in a web browser'
39+ 'ignore:Ignore a SHA from github network commits'
40+ 'info:Info about this project'
41+ 'issues:Project issues tools'
42+ 'network:Project network tools - sub-commands : web [user], list, fetch, commits'
43+ 'open:Open the given user/project in a web browser'
44+ 'pull-request:Generate the text for a pull request'
45+ 'pull:Pull from a remote'
46+ 'search:Search GitHub for the given repository name'
47+ 'track:Track another users repository'
48+)
49+
50+local expl
51+local -a pkgs installed_pkgs
52+
53+_arguments \
54+ '*:: :->subcmds' && return 0
55+
56+if (( CURRENT == 1 )); then
57+ _describe -t commands "github subcommand" _1st_arguments
58+ return
59+fi
60diff --git a/plugins/github/github.plugin.zsh b/plugins/github/github.plugin.zsh
61new file mode 100644
62index 0000000000000000000000000000000000000000..c23504b85b464b411c14abcbe9301e9348ebf5f6
63--- /dev/null
64+++ b/plugins/github/github.plugin.zsh
65@@ -0,0 +1,4 @@
66+# add github completion function to path
67+fpath=($ZSH/plugins/github $fpath)
68+autoload -U compinit
69+compinit -i