diff options
author | Guangxiong Lin <[email protected]> | 2022-04-03 01:30:30 +0800 |
---|---|---|
committer | Guangxiong Lin <[email protected]> | 2022-04-03 01:30:30 +0800 |
commit | c3e414cf3fba83c11648d1b8805ddf91541a8651 (patch) | |
tree | cd269210cc4da8a368381b15ad025765afba9bde | |
parent | 250788b0fdafc3bc64c7f1d0bbca41c93a23d39b (diff) | |
download | dotfiles-c3e414cf3fba83c11648d1b8805ddf91541a8651.tar.gz dotfiles-c3e414cf3fba83c11648d1b8805ddf91541a8651.tar.bz2 dotfiles-c3e414cf3fba83c11648d1b8805ddf91541a8651.zip |
Update macos path scripts
-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' |