aboutsummaryrefslogtreecommitdiff
path: root/.macos
blob: f154236391bb051006291fd6e26e9321a53c3cf9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/env bash

macos_update_path () {
    new_path=$1
    [ -d $new_path ] && export PATH=$new_path:$PATH
}

macos_update_path /usr/local/opt/openjdk/bin
macos_update_path /usr/local/opt/ruby/bin
macos_update_path /usr/local/opt/llvm/bin

export BROWSER='open'

alias bug='brew upgrade --greedy'

if [[ $(spctl --status) == 'assessments enabled' ]]; then
    echo 'Software installment is limited again. Password is required to remove the limit.'
    sudo spctl --master-disable
fi

[[ $(arch) = "arm64" ]] &&
    eval "$(/opt/homebrew/bin/brew shellenv)" ||
    eval "$(/usr/local/Homebrew/bin/brew shellenv)"