aboutsummaryrefslogtreecommitdiff
path: root/.macos
blob: 888dd99726b3072a082d0cdbf3ca233a7cb5e163 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/env bash

[ "$(uname)" = Darwin ] || return

export IS_MACOS=1

export BROWSER='open'
alias bug='brew upgrade --greedy'

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

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