-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdot_profile
26 lines (23 loc) · 920 Bytes
/
dot_profile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
if [[ $(sysctl -n machdep.cpu.brand_string) =~ "Apple" ]]
then
eval "$(/opt/homebrew/bin/brew shellenv)"
eval "$(/opt/homebrew/bin/mise activate bash --shims)"
else
eval "$(/usr/local/bin/brew shellenv)"
eval "$(/usr/local/bin/mise activate bash --shims)"
fi
# https://rustup.rs/
. "$HOME/.cargo/env"
# https://github.com/asdf-community/asdf-flutter
export FLUTTER_ROOT="$(mise where flutter)"
# https://ccache.dev/
# https://github.com/invertase/firestore-ios-sdk-frameworks/discussions/82
# https://dev.to/leehack/optimize-flutter-ios-build-using-ccache-2oi2
if command -v ccache &> /dev/null
then
export PATH="/opt/homebrew/opt/ccache/libexec:$PATH"
export CCACHE_SLOPPINESS=clang_index_store,file_stat_matches,include_file_ctime,include_file_mtime,ivfsoverlay,pch_defines,modules,system_headers,time_macros
export CCACHE_FILECLONE=true
export CCACHE_DEPEND=true
export CCACHE_INODECACHE=true
fi