-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzshenv
56 lines (45 loc) · 1.55 KB
/
zshenv
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
SHELLCHECK_OPTS='-e SC1090 -e SC1091 -e SC2088 -e SC2016 -e1117'
PYENV_ROOT="${HOME}/.pyenv"
TAG_SEARCH_PROG='rg'
if [ -z "${MANPATH:-}" ]; then
# Ensure the manpath is set
MANPATH="`manpath`"
fi
typeset -UT MANPATH manpath
typeset -UT GOPATH gopath
typeset -UT NODE_PATH nodepath
NPM_PACKAGES="${HOME}/.npm-packages"
gopath=("${HOME}/.go" $gopath)
nodepath=("${NPM_PACKAGES}/lib/node_modules" $nodepath)
manpath=("${NPM_PACKAGES}/share/man" $manpath)
path=(
"${NPM_PACKAGES}/bin"
"${GOPATH}/bin"
"${HOME}/.cargo/bin"
/usr/local/sbin
$path)
if [ -d /usr/local/opt/libressl/bin ]; then
# We want this earlier than the default `openssl` bin
path=(
/usr/local/opt/libressl/bin
$path)
fi
if [ -e "${HOME}/.nix-profile" ]; then
path=(
"${HOME}/.nix-helpers/bin"
$path)
fi
# Local config
if [ -e "${HOME}/.zshenv.local" ]; then source "${HOME}/.zshenv.local"; fi
if [ -e "${HOME}/.path" ]; then source "${HOME}/.path"; fi
if [ -e "${HOME}/.path.local" ]; then source "${HOME}/.path.local"; fi
# Ensure ~/.local/bin/ is where we try to put things we care about
# But favor what we put in-place with our own automation more (~/.bin)
path=(
"${HOME}/.bin"
"${HOME}/.local/bin"
$path)
if [ -f "${HOME}/.aliases" ]; then . "${HOME}/.aliases"; fi
if [ -f "${HOME}/.aliases.local" ]; then . "${HOME}/.aliases.local"; fi
export PYENV_ROOT NPM_PACKAGES SHELLCHECK_OPTS TAG_SEARCH_PROG GOPATH MANPATH NODE_PATH
if [ -e "${HOME}"/.nix-profile/etc/profile.d/nix.sh ]; then . "${HOME}"/.nix-profile/etc/profile.d/nix.sh; fi # added by Nix installer