-
Notifications
You must be signed in to change notification settings - Fork 0
/
dot_zprofile
32 lines (25 loc) · 885 Bytes
/
dot_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
31
if [ -d "$HOME/.cargo" ]; then
. "$HOME/.cargo/env"
fi
if [ -f "$HOME/.local/bin/pdm" ]; then
eval "$($HOME/.local/bin/pdm --pep582)"
elif [ -f "$HOME/.pyenv/shims/pdm" ]; then
eval "$($HOME/.pyenv/shims/pdm --pep582)"
fi
if [[ $OSTYPE == 'darwin'* ]]; then
if [ -f "/usr/local/bin/brew" ]; then
eval "$(/usr/local/bin/brew shellenv)"
fi
if [ -f "/opt/homebrew/bin/brew" ]; then
eval "$(/opt/homebrew/bin/brew shellenv)"
fi
fi
if [ -d "$HOME/.pyenv" ]; then
export PYENV_ROOT="$HOME/.pyenv"
command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init --path)"
fi
export NVM_DIR="$HOME/.nvm"
[ -s "/opt/homebrew/opt/nvm/nvm.sh" ] && \. "/opt/homebrew/opt/nvm/nvm.sh"
[ -s "/opt/homebrew/opt/nvm/etc/bash_completion.d/nvm" ] && \. "/opt/homebrew/opt/nvm/etc/bash_completion.d/nvm"
export PATH="$HOME/.local/bin:$PATH"