-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.env
executable file
·70 lines (61 loc) · 1.5 KB
/
.env
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
#!/usr/bin/env bash
# Set up environment variables.
# This is meant to work in bash and zsh.
. "$HOME/bin/shell_utils"
# locale
export LANG=en_US.UTF-8
export LC_CTYPE=en_US.UTF-8
export LC_MESSAGES=en_US.UTF-8
export LC_COLLATE=C
homebrew=/opt/homebrew
paths=(
/sbin
/usr/sbin
/bin
/usr/bin
/opt/X11/bin
/usr/local/sbin
/usr/local/bin
/opt/local/bin
/opt/local/sbin
$homebrew/sbin
$homebrew/bin
$homebrew/opt/coreutils/libexec/gnubin
$homebrew/opt/texinfo/bin
$homebrew/opt/sqlite/bin
$homebrew/opt/openjdk/bin
$homebrew/opt/m4/bin
$homebrew/opt/llvm/bin
$homebrew/opt/ruby/bin
$homebrew/lib/ruby/gems/3.1.0/bin
$homebrew/opt/python/libexec/bin
$homebrew/lib/python3.9/site-packages
$HOME/Library/Python/3.9/bin
$GOPATH/bin/usr/local/sbin
$HOME/perl5/bin
$HOME/.cargo/bin
$GOPATH/bin/usr/local/sbin
$HOME/bin
$HOME/.emacs.d/bin
$HOME/private/bin
)
pkg_config_paths=(
$homebrew/Library/Taps/homebrew/homebrew-core/Aliases/pkgconfig
$homebrew/Library/Homebrew/os/mac/pkgconfig
$homebrew/opt/ruby/lib/pkgconfig
$homebrew/lib/pkgconfig
/usr/lib/pkgconfig
)
man_paths=(
/opt/local/share/man
/usr/local/share/man
/usr/share/man
$homebrew/share/man
)
add_to_path PATH "${paths[@]}"
add_to_path PKG_CONFIG_PATH "${pkg_config_paths[@]}"
add_to_path MANPATH "${man_paths[@]}"
# Ensure we can find the Homebrew installed version of libgccjit for GCCEmacs
add_to_path LIBRARY_PATH "/usr/local/opt/libgccjit/lib/gcc/10"
# private
source_if "$HOME/private/private.sh"