From 8de68a9bda1b7eaa810c5c0e81c2276acd5409f7 Mon Sep 17 00:00:00 2001 From: Sorin Ionescu Date: Tue, 7 Oct 2014 23:29:47 -0400 Subject: [PATCH] Revert "[Fix #242] Remove hub" This reverts commit ccf181379aef10d4e090f709a3aa9d315ac314b9. --- modules/git/hub.zsh | 15 +++++++++++++++ modules/git/init.zsh | 1 + 2 files changed, 16 insertions(+) create mode 100644 modules/git/hub.zsh diff --git a/modules/git/hub.zsh b/modules/git/hub.zsh new file mode 100644 index 0000000..e2c9280 --- /dev/null +++ b/modules/git/hub.zsh @@ -0,0 +1,15 @@ +# +# Adds GitHub knowledge to the Git command. +# https://github.com/defunkt/hub +# +# Authors: +# Chris Wanstrath +# Sorin Ionescu +# + +if (( $+commands[hub] )); then + function git { + hub "$@" + } +fi + diff --git a/modules/git/init.zsh b/modules/git/init.zsh index 3a618f2..8562d39 100644 --- a/modules/git/init.zsh +++ b/modules/git/init.zsh @@ -15,4 +15,5 @@ pmodload 'helper' # Source module files. source "${0:h}/alias.zsh" +source "${0:h}/hub.zsh"