Skip to content

Commit

Permalink
better caveat
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-hammant committed Mar 18, 2016
1 parent 6d9c54a commit c96783e
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions switchjdk.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,9 @@ def post_install
end

def caveats; <<-EOS.undent
Add the following lines to your ~/.bash_profile:
if [ -f $(brew --prefix)/etc/switchjdk-module.bash ]; then
source $(brew --prefix)/etc/switchjdk-module.bash
fi
Start a new terminal session or source ~/.bash_profile to be able to use switchjdk.
Your ~/.bash_profile had a couple of lines added to it to make switchjdk available on the command line.
They will still be there after an uninstall, but are adaptive (nothing happens if switchjdk was uninstalled)
If you're a zsh person, then patches are welcome: https://github.com/paul-hammant/switchjdk/blob/master/add_switchjdk_to_bash_profile_safely.sh
EOS
end

Expand Down

0 comments on commit c96783e

Please sign in to comment.