Support brew installed chruby

pull/412/head
Abhi Hiremagalur 2015-02-12 17:34:30 -08:00
parent 3fd8336644
commit 55158e11d0
2 changed files with 15 additions and 5 deletions

View File

@ -1,5 +1,10 @@
cite about-plugin
about-plugin 'load chruby + auto-switching (from /usr/local/share/chruby)'
about-plugin 'load chruby + auto-switching'
if [ -e /usr/opt/local/chruby ]
then
source /usr/local/opt/chruby/share/chruby/chruby.sh
source /usr/local/opt/chruby/share/chruby/auto.sh
else
source /usr/local/share/chruby/chruby.sh
source /usr/local/share/chruby/auto.sh
fi

View File

@ -1,4 +1,9 @@
cite about-plugin
about-plugin 'load chruby (from /usr/local/share/chruby)'
if [ -e /usr/opt/local/chruby ]
then
source /usr/local/opt/chruby/share/chruby/chruby.sh
else
source /usr/local/share/chruby/chruby.sh
fi