-
Notifications
You must be signed in to change notification settings - Fork 43
/
.zsh_customize-brew
40 lines (35 loc) · 1.42 KB
/
.zsh_customize-brew
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
# Various hacks and bullshit to get a sane environment going on OSX.
# brew --prefix <pkg> is way, way too slow for use here;
# hardcode paths instead.
paths=(
"/usr/local/opt/curl/bin" \
"/usr/local/opt/coreutils/libexec/gnubin" \
"/usr/local/opt/findutils/libexec/gnubin" \
"/usr/local/opt/gnu-sed/libexec/gnubin" \
"/usr/local/opt/gnu-tar/libexec/gnubin" \
"/usr/local/opt/gnu-units/libexec/gnubin" \
"/usr/local/opt/gnu-which/libexec/gnubin" \
"/usr/local/opt/grep/libexec/gnubin" \
"/usr/local/opt/make/libexec/gnubin" \
"/usr/local/opt/python/libexec/bin" \
"/usr/local/opt/util-linux/bin" \
"/usr/local/opt/util-linux/sbin" \
)
manpaths=(
"/usr/local/opt/curl/share/man" \
"/usr/local/opt/coreutils/libexec/gnuman" \
"/usr/local/opt/findutils/libexec/gnuman" \
"/usr/local/opt/gnu-sed/libexec/gnuman" \
"/usr/local/opt/gnu-tar/libexec/gnuman" \
"/usr/local/opt/gnu-units/libexec/gnuman" \
"/usr/local/opt/gnu-which/libexec/gnuman" \
"/usr/local/opt/grep/libexec/gnuman" \
"/usr/local/opt/make/libexec/gnuman" \
"/usr/local/opt/util-linux/share/man" \
)
export ANDROID_HOME=/usr/local/opt/android-sdk
export PATH="${(j|:|)paths}:${PATH}"
export MANPATH="${(j|:|)manpaths}:${MANPATH}"
export LDFLAGS="-L/usr/local/opt/util-linux/lib"
export CPPFLAGS="-I/usr/local/opt/util-linux/include"
export PKG_CONFIG_PATH="/usr/local/opt/util-linux/lib/pkgconfig"