From c78a6e2b4b6e81b80130d6572d907b905ede154e Mon Sep 17 00:00:00 2001 From: Michal Cichra Date: Tue, 25 Oct 2016 12:39:25 +0200 Subject: [PATCH] [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/ --- plugins/chruby/chruby.plugin.zsh | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/plugins/chruby/chruby.plugin.zsh b/plugins/chruby/chruby.plugin.zsh index c4453b86a..44a2a660d 100644 --- a/plugins/chruby/chruby.plugin.zsh +++ b/plugins/chruby/chruby.plugin.zsh @@ -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 }