Commit graph

13 commits

Author SHA1 Message Date
Randall Leeds
4684c8c0a1 Avoid brew unless necessary to find chruby
Rather than checking homebrew first, honor explicit user preferences by
checking the zstyle first, then looking for chruby in its default
location, and finally falling back on homebrew only if chruby was not
found anywhere else.
2017-08-11 14:34:05 -07:00
Michal Cichra
8f91babe95
[chruby] properly redirect errors on missing chruby 2017-01-02 14:11:50 +01:00
Michal Cichra
98721878fb
[chruby] adhere to the style guide
noted in the review: https://github.com/robbyrussell/oh-my-zsh/pull/5562/files#r94311319
2017-01-02 14:04:51 +01:00
Michal Cichra
edf38111d9
[chruby] properly quote variable expansion
to prevent word splitting
2016-10-25 12:45:44 +02:00
Michal Cichra
c78a6e2b4b
[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/
2016-10-25 12:39:25 +02:00
Michal Cichra
927d5ecec6
[chruby] avoid calling brew --prefix 3 times
once is enough, improves performance significantly

scope variable to local via anonymous function
2016-10-22 10:55:42 +02:00
Michal Cichra
53526db979
[chruby] use one line assign to local
to match style with rest of the file
2016-10-22 10:55:42 +02:00
Michal Cichra
e91091acdb
[chruby] scope variable to local to prevent a leak 2016-10-22 10:55:42 +02:00
Stefan Wrobel
3dfd2166fa chruby plugin locals moved inside function 2016-01-07 17:31:03 -08:00
Piotr Gaczkowski
17088c6431 Fix invalid test expression. 2015-09-25 22:53:40 +02:00
Henrik Hodne
8c5b948162 chruby: donʼt try to execute .sh files before loading 2015-09-16 15:28:08 +02:00
Eric Ripa
1dfadc734c Fix chruby plugin to not complain if chruby is *not* installed 2014-11-24 09:54:50 +01:00
Sean Escriva
037b39a817 Add simple plugin for chruby ruby version manager 2013-11-16 15:40:55 -08:00