From c3e414cf3fba83c11648d1b8805ddf91541a8651 Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Sun, 3 Apr 2022 01:30:30 +0800 Subject: Update macos path scripts --- .macos | 10 ++++++---- 1 file 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' -- cgit v1.2.3