aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.macos10
1 files changed, 6 insertions, 4 deletions
diff --git a/.macos b/.macos
index e239d7f..0bf6f24 100644
--- a/.macos
+++ b/.macos
@@ -1,10 +1,12 @@
#!/usr/bin/env bash
-JAVA_PATH=/usr/local/opt/openjdk/bin
-[ -d $JAVA_PATH ] && export PATH=$JAVA_PATH:$PATH
+macos_update_path () {
+ new_path=$1
+ [ -d $new_path ] && export PATH=$new_path:$PATH
+}
-RUBY_PATH=/usr/local/opt/ruby/bin
-[ -d $RUBY_PATH ] && export PATH=$RUBY_PATH:$PATH
+macos_update_path /usr/local/opt/openjdk/bin
+macos_update_path /usr/local/opt/ruby/bin
export BROWSER='open -a safari'
[ -d /Applications/Firefox.app ] && export BROWSER='open -a firefox'