aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/chruby.rb
diff options
context:
space:
mode:
authorChristian Höltje2013-08-22 12:22:23 -0400
committerJack Nagel2013-08-22 18:26:07 -0500
commit741b7c22455830d69a8589285511100dbfd8bf7c (patch)
treebb04f0b15b4a098fc552aff1477d6e32567e1409 /Library/Formula/chruby.rb
parent378867d063790a6b9d12dfc6477a5faf2b5ccdbc (diff)
downloadhomebrew-741b7c22455830d69a8589285511100dbfd8bf7c.tar.bz2
chruby: Use opt_prefix
Cleaning up places that can use `opt_prefix` instead of `#{HOMEBREW_PREFIX}/opt/<packagename>` Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula/chruby.rb')
-rw-r--r--Library/Formula/chruby.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Formula/chruby.rb b/Library/Formula/chruby.rb
index 113c68604..e173cbd97 100644
--- a/Library/Formula/chruby.rb
+++ b/Library/Formula/chruby.rb
@@ -14,7 +14,7 @@ class Chruby < Formula
def caveats; <<-EOS.undent
Add the following to the ~/.bashrc or ~/.zshrc file:
- source #{HOMEBREW_PREFIX}/opt/chruby/share/chruby/chruby.sh
+ source #{opt_prefix}/share/chruby/chruby.sh
By default chruby will search for Rubies installed into /opt/rubies/ or
~/.rubies/. For non-standard installation locations, simply set the RUBIES
@@ -34,7 +34,7 @@ class Chruby < Formula
To enable auto-switching of Rubies specified by .ruby-version files,
add the following to ~/.bashrc or ~/.zshrc:
- source #{HOMEBREW_PREFIX}/opt/chruby/share/chruby/auto.sh
+ source #{opt_prefix}/share/chruby/auto.sh
EOS
end
end