diff options
author | Marc Cornellà <marc.cornella@live.com> | 2018-04-24 22:02:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-24 22:02:58 +0200 |
commit | ef70990ce1ac0239005b267e5dcfe096969d26c3 (patch) | |
tree | a625015ca49f45f603a36e3c5a453535fc70e29b /plugins/github/github.plugin.zsh | |
parent | 45a9f284641a23baa142743d8a6136d4e300c465 (diff) | |
download | zsh-ef70990ce1ac0239005b267e5dcfe096969d26c3.tar.gz zsh-ef70990ce1ac0239005b267e5dcfe096969d26c3.tar.bz2 zsh-ef70990ce1ac0239005b267e5dcfe096969d26c3.zip |
Simplify hub check and hardcode aliasing (#6767)
* Simplify hub check and hardcode aliasing
* Update hub completion
Diffstat (limited to 'plugins/github/github.plugin.zsh')
-rw-r--r-- | plugins/github/github.plugin.zsh | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/github/github.plugin.zsh b/plugins/github/github.plugin.zsh index 0ab399c97..077f07bd4 100644 --- a/plugins/github/github.plugin.zsh +++ b/plugins/github/github.plugin.zsh @@ -1,8 +1,6 @@ # 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 ################################################################# |