... | ... |
@@ -12,7 +12,7 @@ alias gb='git branch' |
12 | 12 |
alias gba='git branch -a' |
13 | 13 |
alias gcount='git shortlog -sn' |
14 | 14 |
alias gcp='git cherry-pick' |
15 |
- |
|
15 |
+alias glg='git log --stat --max-count=5' |
|
16 | 16 |
|
17 | 17 |
# Git and svn mix |
18 | 18 |
alias git-svn-dcommit-push='git svn dcommit && git push github master:svntrunk' |
19 | 19 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,40 @@ |
0 |
+# in order to make this work, you would need to have the github gem installed |
|
1 |
+# http://github.com/defunkt/github-gem |
|
2 |
+ |
|
3 |
+#compdef github |
|
4 |
+#autoload |
|
5 |
+ |
|
6 |
+# github zsh completion, based on homebrew completion |
|
7 |
+ |
|
8 |
+local -a _1st_arguments |
|
9 |
+_1st_arguments=( |
|
10 |
+ 'browse:Open this repo in a web browser' |
|
11 |
+ 'clone:Clone a repo' |
|
12 |
+ 'config:Automatically set configuration info, or pass args to specify' |
|
13 |
+ 'create-from-local:Create a new GitHub repository from the current local repository' |
|
14 |
+ 'create:Create a new empty GitHub repository' |
|
15 |
+ 'fetch:Fetch from a remote to a local branch' |
|
16 |
+ 'fetch_all:Fetch all refs from a user' |
|
17 |
+ 'fork:Forks a GitHub repository' |
|
18 |
+ 'home:Open this repos master branch in a web browser' |
|
19 |
+ 'ignore:Ignore a SHA from github network commits' |
|
20 |
+ 'info:Info about this project' |
|
21 |
+ 'issues:Project issues tools' |
|
22 |
+ 'network:Project network tools - sub-commands : web [user], list, fetch, commits' |
|
23 |
+ 'open:Open the given user/project in a web browser' |
|
24 |
+ 'pull-request:Generate the text for a pull request' |
|
25 |
+ 'pull:Pull from a remote' |
|
26 |
+ 'search:Search GitHub for the given repository name' |
|
27 |
+ 'track:Track another users repository' |
|
28 |
+) |
|
29 |
+ |
|
30 |
+local expl |
|
31 |
+local -a pkgs installed_pkgs |
|
32 |
+ |
|
33 |
+_arguments \ |
|
34 |
+ '*:: :->subcmds' && return 0 |
|
35 |
+ |
|
36 |
+if (( CURRENT == 1 )); then |
|
37 |
+ _describe -t commands "github subcommand" _1st_arguments |
|
38 |
+ return |
|
39 |
+fi |