aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2022-04-03 01:30:30 +0800
committerGuangxiong Lin <[email protected]>2022-04-03 01:30:30 +0800
commitc3e414cf3fba83c11648d1b8805ddf91541a8651 (patch)
treecd269210cc4da8a368381b15ad025765afba9bde
parent250788b0fdafc3bc64c7f1d0bbca41c93a23d39b (diff)
downloaddotfiles-c3e414cf3fba83c11648d1b8805ddf91541a8651.tar.gz
dotfiles-c3e414cf3fba83c11648d1b8805ddf91541a8651.tar.bz2
dotfiles-c3e414cf3fba83c11648d1b8805ddf91541a8651.zip
Update macos path scripts
-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'