Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Ohmyzsh
Commits
df126ef5
Commit
df126ef5
authored
Oct 09, 2010
by
Robby Russell
Browse files
Merge branch 'master' of
http://github.com/svnlto/oh-my-zsh
into svnlto-master
parents
d1c8ef46
210c76c3
Changes
3
Hide whitespace changes
Inline
Side-by-side
plugins/git/git.plugin.zsh
View file @
df126ef5
...
@@ -12,7 +12,7 @@ alias gb='git branch'
...
@@ -12,7 +12,7 @@ alias gb='git branch'
alias
gba
=
'git branch -a'
alias
gba
=
'git branch -a'
alias
gcount
=
'git shortlog -sn'
alias
gcount
=
'git shortlog -sn'
alias
gcp
=
'git cherry-pick'
alias
gcp
=
'git cherry-pick'
alias
glg
=
'git log --stat --max-count=5'
# Git and svn mix
# Git and svn mix
alias
git-svn-dcommit-push
=
'git svn dcommit && git push github master:svntrunk'
alias
git-svn-dcommit-push
=
'git svn dcommit && git push github master:svntrunk'
...
...
plugins/github/_github
0 → 100644
View file @
df126ef5
# in order to make this work, you would need to have the github gem installed
# http://github.com/defunkt/github-gem
#compdef github
#autoload
# 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
plugins/github/github.plugin.zsh
0 → 100644
View file @
df126ef5
# add github completion function to path
fpath
=(
$ZSH
/plugins/github
$fpath
)
autoload
-U
compinit
compinit
-i
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment