Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

*env: remove non-Homebrew-specific caveats. #9662

Closed
wants to merge 8 commits into from
9 changes: 0 additions & 9 deletions Formula/exenv.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,6 @@ def install
prefix.install Dir["*"]
end

def caveats; <<-EOS.undent
To use Homebrew's directories rather than ~/.exenv add to your profile:
export "EXENV_ROOT=#{var}/exenv"

To enable shims and autocompletion add to your profile:
if which exenv > /dev/null; then eval "$(exenv init -)"; fi
EOS
end

test do
system "#{bin}/exenv", "init", "-"
end
Expand Down
9 changes: 0 additions & 9 deletions Formula/goenv.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,6 @@ def install
end
end

def caveats; <<-EOS.undent
To use Homebrew's directories rather than ~/.goenv add to your profile:
export GOENV_ROOT=#{var}/goenv

To enable shims and autocompletion add to your profile:
if which goenv > /dev/null; then eval "$(goenv init -)"; fi
EOS
end

test do
assert_match "Usage: goenv <command> [<args>]", shell_output("#{bin}/goenv help")
end
Expand Down
9 changes: 0 additions & 9 deletions Formula/jenv.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,6 @@ def install
bin.write_exec_script libexec/"bin/jenv"
end

def caveats; <<-EOS.undent
To use Homebrew's directories rather than ~/.jenv add to your profile:
export JENV_ROOT=#{var}/jenv

To enable shims and autocompletion add to your profile:
if which jenv > /dev/null; then eval "$(jenv init -)"; fi
EOS
end

test do
shell_output("eval \"$(#{bin}/jenv init -)\" && jenv versions")
end
Expand Down
9 changes: 0 additions & 9 deletions Formula/nodenv.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,6 @@ def install
prefix.install "bin", "libexec", "completions"
end

def caveats; <<-EOS.undent
To use Homebrew's directories rather than ~/.nodenv add to your profile:
export NODENV_ROOT=#{var}/nodenv

To enable shims and autocompletion add to your profile:
if which nodenv > /dev/null; then eval "$(nodenv init -)"; fi
EOS
end

test do
shell_output("eval \"$(#{bin}/nodenv init -)\" && nodenv --version")
end
Expand Down
9 changes: 0 additions & 9 deletions Formula/pyenv.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,6 @@ def install
end
end

def caveats; <<-EOS.undent
To use Homebrew's directories rather than ~/.pyenv add to your profile:
export PYENV_ROOT=#{var}/pyenv

To enable shims and autocompletion add to your profile:
if which pyenv > /dev/null; then eval "$(pyenv init -)"; fi
EOS
end

test do
shell_output("eval \"$(#{bin}/pyenv init -)\" && pyenv versions")
end
Expand Down
10 changes: 0 additions & 10 deletions Formula/rbenv.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,6 @@ def install
prefix.install ["bin", "completions", "libexec", "rbenv.d"]
end

def caveats; <<-EOS.undent
Rbenv stores data under ~/.rbenv by default. If you absolutely need to
store everything under Homebrew's prefix, include this in your profile:
export RBENV_ROOT=#{var}/rbenv

To enable shims and autocompletion, run this and follow the instructions:
rbenv init
EOS
end

test do
shell_output("eval \"$(#{bin}/rbenv init -)\" && rbenv versions")
end
Expand Down
9 changes: 0 additions & 9 deletions Formula/sbtenv.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,6 @@ def post_install
(var_lib/"plugins").install_symlink "#{prefix}/default-plugins/sbt-install"
end

def caveats; <<-EOS.undent
To use Homebrew's directories rather than ~/.sbtenv add to your profile:
export SBTENV_ROOT=#{var}/sbtenv

To enable shims and autocompletion add to your profile:
eval "$(sbtenv init -)"
EOS
end

test do
shell_output("eval \"$(#{bin}/sbtenv init -)\" && sbtenv versions")
end
Expand Down
9 changes: 0 additions & 9 deletions Formula/scalaenv.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,6 @@ def post_install
(var_lib/"plugins").install_symlink "#{prefix}/default-plugins/scala-install"
end

def caveats; <<-EOS.undent
To use Homebrew's directories rather than ~/.scalaenv add to your profile:
export SCALAENV_ROOT=#{var}/scalaenv

To enable shims and autocompletion add to your profile:
eval "$(scalaenv init -)"
EOS
end

test do
shell_output("eval \"$(#{bin}/scalaenv init -)\" && scalaenv versions")
end
Expand Down