... | ... |
@@ -1,7 +1,8 @@ |
1 | 1 |
# hub alias from defunkt |
2 | 2 |
# https://github.com/defunkt/hub |
3 |
-if which hub > /dev/null; then |
|
4 |
- eval $(hub alias -s zsh) |
|
3 |
+if [ "$commands[(I)hub]" ]; then |
|
4 |
+ # eval `hub alias -s zsh` |
|
5 |
+ function git(){hub "$@"} |
|
5 | 6 |
fi |
6 | 7 |
|
7 | 8 |
# add github completion function to path |