-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zprofile
46 lines (36 loc) · 1.09 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
typeset -U path
# MacOS
if [[ "$(uname -s)" == "Darwin" ]]; then
# Set PATH, MANPATH, etc., for Homebrew.
if [[ -e '/opt/homebrew/bin/brew' ]]; then
eval "$(/opt/homebrew/bin/brew shellenv)"
fi
# GNU grep
if [[ -e '/opt/homebrew/opt/grep/libexec/gnubin' ]]; then
path=('/opt/homebrew/opt/grep/libexec/gnubin' $path)
fi
# GNU units
if [[ -e '/opt/homebrew/opt/gnu-units/libexec/gnubin' ]]; then
path=('/opt/homebrew/opt/gnu-units/libexec/gnubin' $path)
fi
# OpenSSL 3
if [[ -e '/opt/homebrew/opt/[email protected]/bin' ]]; then
path=('/opt/homebrew/opt/[email protected]/bin' $path)
fi
# JetBrains Toolbox
if [[ -e "${HOME}/Library/Application Support/JetBrains/Toolbox/scripts" ]]; then
path+=("${HOME}/Library/Application Support/JetBrains/Toolbox/scripts")
fi
fi
# Krew
if [[ -e "${KREW_ROOT:-$HOME/.krew}/bin" ]]; then
path+=("${KREW_ROOT:-$HOME/.krew}/bin:$PATH")
fi
# Emacs / Doom
if [[ -e "${HOME}/.config/emacs/bin" ]]; then
path+=("${HOME}/.config/emacs/bin")
fi
if [[ -e "${HOME}/.local/bin" ]]; then
path=("${HOME}/.local/bin:$PATH" $path)
fi
export PATH