mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-19 21:41:07 +01:00
github plugin: check for ruby
.
I've run into the issue where a stripped down container had no Ruby installed, which caused `hub` to fail. Therefore I've added an extra check to verify that `ruby` is in the commands list before setting up this alias/function.
This commit is contained in:
parent
971b071dc6
commit
911837c48f
1 changed files with 2 additions and 3 deletions
|
@ -1,6 +1,5 @@
|
||||||
# hub alias from defunkt
|
# Setup hub function for git, if it is available; http://github.com/defunkt/hub
|
||||||
# https://github.com/defunkt/hub
|
if [ "$commands[(I)hub]" ] && [ "$commands[(I)ruby]" ]; then
|
||||||
if [ "$commands[(I)hub]" ]; then
|
|
||||||
# eval `hub alias -s zsh`
|
# eval `hub alias -s zsh`
|
||||||
function git(){hub "$@"}
|
function git(){hub "$@"}
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue