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
ef70990c
Unverified
Commit
ef70990c
authored
Apr 24, 2018
by
Marc Cornellà
Committed by
GitHub
Apr 24, 2018
Browse files
Simplify hub check and hardcode aliasing (#6767)
* Simplify hub check and hardcode aliasing * Update hub completion
parent
45a9f284
Changes
2
Show whitespace changes
Inline
Side-by-side
plugins/github/_hub
View file @
ef70990c
...
...
@@ -89,6 +89,7 @@ __hub_setup_zsh_fns () {
browse:'browse the project on GitHub'
compare:'open GitHub compare view'
ci-status:'lookup commit in GitHub Status API'
sync:'update local branches from upstream'
)
_describe -t hub-commands 'hub command' hub_commands && ret=0
...
...
@@ -115,6 +116,7 @@ create
browse
compare
ci-status
sync
EOF
__git_list_all_commands_without_hub
}
...
...
plugins/github/github.plugin.zsh
View file @
ef70990c
# Set up hub wrapper for git, if it is available; http://github.com/github/hub
if
[
"
$commands
[(I)hub]"
]
;
then
if
hub
--version
&>/dev/null
;
then
eval
$(
hub
alias
-s
zsh
)
fi
if
((
$+
commands[hub]
))
;
then
alias
git
=
hub
fi
# Functions #################################################################
...
...
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