mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-06-05 05:03:16 +02:00
Simplify hub check and hardcode aliasing
This commit is contained in:
parent
45a9f28464
commit
686cb07db7
1 changed files with 2 additions and 4 deletions
|
|
@ -1,8 +1,6 @@
|
||||||
# Set up hub wrapper for git, if it is available; http://github.com/github/hub
|
# Set up hub wrapper for git, if it is available; http://github.com/github/hub
|
||||||
if [ "$commands[(I)hub]" ]; then
|
if (( $+commands[hub] )); then
|
||||||
if hub --version &>/dev/null; then
|
alias git=hub
|
||||||
eval $(hub alias -s zsh)
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Functions #################################################################
|
# Functions #################################################################
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue