From 26b00ec84c599f08664adeced70294f5c7ee31b8 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Sun, 26 Oct 2014 23:32:35 -0700 Subject: [PATCH] add java home. --- dotfiles/lib/shellrc.sh | 7 ++++--- tasks/osx.py | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/dotfiles/lib/shellrc.sh b/dotfiles/lib/shellrc.sh index 71b10cfd..42725cde 100644 --- a/dotfiles/lib/shellrc.sh +++ b/dotfiles/lib/shellrc.sh @@ -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" diff --git a/tasks/osx.py b/tasks/osx.py index 6e534849..57522e9c 100644 --- a/tasks/osx.py +++ b/tasks/osx.py @@ -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):