-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.zprofile
93 lines (64 loc) · 2.87 KB
/
.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
########################################################################
# paths
########################################################################
[[ -d "${HOME}/.local/bin" ]] && export PATH="${HOME}/.local/bin:${PATH}"
[[ -d "${HOME}/.local/sbin" ]] && export PATH="${HOME}/.local/sbin:${PATH}"
########################################################################
# Homebrew
########################################################################
export HOMEBREW_INSTALL_BADGE=""
export HOMEBREW_NO_EMOJI=1
export HOMEBREW_NO_INSTALL_CLEANUP=1
export HOMEBREW_NO_AUTO_UPDATE=1
export HOMEBREW_NO_ANALYTICS=1
eval "$(/opt/homebrew/bin/brew shellenv)"
########################################################################
# Jetbrains IDEs
########################################################################
if [[ -d "$HOME/Library/Application Support/JetBrains/Toolbox/scripts" ]]; then
export PATH="$HOME/Library/Application Support/JetBrains/Toolbox/scripts:$PATH"
fi
########################################################################
# PostgreSQL
########################################################################
# prefer newest PostgreSQL version available
for i in {1..20}; do
if [[ -d "${HOMEBREW_PREFIX}/opt/postgresql@${i}/bin" ]]; then
export PATH="${HOMEBREW_PREFIX}/opt/postgresql@${i}/bin:${PATH}"
fi
done
########################################################################
# Python-specific
########################################################################
export PIP_DISABLE_PIP_VERSION_CHECK=1
export PIP_NO_CACHE_DIR=1
export PYTHONDONTWRITEBYTECODE=1
export PYENV_ROOT="${HOME}/.pyenv"
export PATH="${PYENV_ROOT}/bin:${PATH}"
type pyenv &> /dev/null && eval "$(pyenv init --path)"
########################################################################
# Perl-specific
########################################################################
export PERL5LIB="${HOME}/.local/lib/perl5:${PERL5LIB}"
export PERL_CPANM_OPT="-L ${HOME}/.local --self-contained"
export PERLBREW_ROOT="/opt/perl"
#[[ -e /opt/perl/etc/bashrc ]] && source /opt/perl/etc/bashrc
########################################################################
# Ruby-specific
########################################################################
export DISABLE_SPRING="true"
export WEB_CONCURRENCY=0
type rbenv &> /dev/null && eval "$(rbenv init - zsh)"
########################################################################
# Rust
########################################################################
if [[ -d "${HOME}/.cargo/bin" ]]; then
export PATH="${HOME}/.cargo/bin:${PATH}"
fi
########################################################################
# Go
########################################################################
export GOPATH="${HOME}/Developer/go"
export GOBIN="${GOPATH}/bin"
export PATH="${GOBIN}:${PATH}"
# vim: set ft=zsh tw=100 :