diff options
-rw-r--r-- | .macos | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -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' |