From 741b7c22455830d69a8589285511100dbfd8bf7c Mon Sep 17 00:00:00 2001 From: Christian Höltje Date: Thu, 22 Aug 2013 12:22:23 -0400 Subject: chruby: Use opt_prefix Cleaning up places that can use `opt_prefix` instead of `#{HOMEBREW_PREFIX}/opt/` Signed-off-by: Jack Nagel --- Library/Formula/chruby.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Library/Formula/chruby.rb') 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 -- cgit v1.2.3