-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zprofile
30 lines (24 loc) · 921 Bytes
/
.zprofile
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
27
28
29
30
# Create Developer directory if it doesn't exist
if [ ! -d "$HOME/Developer" ]; then
mkdir "$HOME/Developer"
fi
# macOS specific configs
if [[ "$(uname -s)" == "Darwin" ]]; then
# homebrew initialization
if [[ "$(uname -m)" == "arm64" ]]; then # Apple Silicon
eval "$(/opt/homebrew/bin/brew shellenv)"
else # Intel
eval "$(/usr/local/bin/brew shellenv)"
fi
# nvm initialization
[ -s "$(brew --prefix nvm)/nvm.sh" ] && source "$(brew --prefix nvm)/nvm.sh"
[ -s "$(brew --prefix nvm)/etc/bash_completion.d/nvm" ] && source "$(brew --prefix nvm)/etc/bash_completion.d/nvm"
# asdf initialization
[ -s "$(brew --prefix asdf)" ] && source "$(brew --prefix asdf)/libexec/asdf.sh"
fi
# pyenv initialization
eval "$(pyenv init -)"
# rbenv initialization
eval "$(rbenv init - zsh)"
# cargo initialization
[ -s "${HOME}/.cargo/env" ] && source "$HOME/.cargo/env"