add java home.

This commit is contained in:
Ivan Malison 2014-10-26 23:32:35 -07:00
parent d3aaeb420f
commit 26b00ec84c
2 changed files with 5 additions and 4 deletions

View File

@ -19,10 +19,11 @@ if is_osx; then
export CFLAGS=-Qunused-arguments
export CPPFLAGS=-Qunused-arguments
add_to_back_of_path "/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/"
export JAVA_HOME="$(find /Library/Java/JavaVirtualMachines -depth 1 | head -n 1)/Contents/Home"
add_to_front_of_path "$JAVA_HOME/bin"
# Access gnu man pages.
hash brew 2> /dev/null && export MANPATH="$(brew --prefix)/opt/coreutils/libexec/gnuman:$MANPATH"
fi
add_to_back_of_path "$(dotfiles_directory)/resources/python"
add_to_back_of_path "/usr/local/sbin"
# Access gnu man pages.
hash brew 2> /dev/null && MANPATH="$(brew --prefix)/opt/coreutils/libexec/gnuman:$MANPATH"

View File

@ -59,7 +59,7 @@ def brew_cask(ctx):
@ctask
def get_brew(ctx):
if not util.command_exists('brew'):
ctx.run('ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"')
ctx.run('ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"')
@ctask
def brew_install(ctx):