mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-01 04:30:37 +02:00
[chruby] don't add rubies to chruby
chruby does that automatically. from documentation: > When chruby is first loaded by the shell, it will auto-detect Rubies installed in /opt/rubies/ and ~/.rubies/
This commit is contained in:
parent
927d5ecec6
commit
c78a6e2b4b
1 changed files with 0 additions and 12 deletions
|
|
@ -50,29 +50,17 @@ _source_from_omz_settings() {
|
|||
fi
|
||||
}
|
||||
|
||||
_chruby_dirs() {
|
||||
local _chrubydirs=($HOME/.rubies/ $PREFIX/opt/rubies)
|
||||
for dir in _chrubydirs; do
|
||||
if [[ -d $dir ]]; then
|
||||
RUBIES+=$dir
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
function () {
|
||||
local _chruby_homebrew_prefix=$(brew --prefix chruby) &> /dev/null
|
||||
|
||||
if _homebrew-installed && [ -r ${_chruby_homebrew_prefix} ] ; then
|
||||
source ${_chruby_homebrew_prefix}/share/chruby/chruby.sh
|
||||
source ${_chruby_homebrew_prefix}/share/chruby/auto.sh
|
||||
_chruby_dirs
|
||||
elif [[ -r "/usr/local/share/chruby/chruby.sh" ]] ; then
|
||||
source /usr/local/share/chruby/chruby.sh
|
||||
source /usr/local/share/chruby/auto.sh
|
||||
_chruby_dirs
|
||||
else
|
||||
_source_from_omz_settings
|
||||
_chruby_dirs
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue