-
Notifications
You must be signed in to change notification settings - Fork 0
/
zshenv
105 lines (84 loc) · 2.94 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
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
94
95
96
97
98
99
100
101
102
103
104
105
# Read after /etc/zshenv and before anything else
###############################################################################
## PATH
# Set PATH for homebrew
if [[ -d "/usr/local/sbin" ]]
then
PATH="${PATH}:/usr/local/sbin"
fi
# Set PATH for gemrepo
if [[ -d "${HOME}/gemrepo" ]]
then
export GEM_HOME=${HOME}/gemrepo
PATH=${PATH}:${HOME}/gemrepo/bin
fi
# Set PATH for users own bin
if [[ -d "${HOME}/bin" ]]
then
PATH="${HOME}/bin:${PATH}"
fi
# Set PATH for users python scripts
if [[ -d "/usr/local/share/python" ]]
then
PATH="/usr/local/share/python:${PATH}"
fi
# Set PATH if TexLive is mounted
if [[ -d "/Volumes/TeXLive2009" ]]
then
PATH="${PATH}:/Volumes/TeXLive2009/bin/universal-darwin"
export MANPATH="${MANPATH}:/Volumes/TeXLive2009/texmf/doc/man"
export INFOPATH="${INFOPATH}:/Volumes/TeXLive2009/texmf/doc/info"
export TEXMFCNF="/usr/local/texlive/2009/texmf-var/web2c"
export TEXMFLOCAL="/usr/local/texlive/texmf-local"
export TEXMFSYSVAR="/usr/local/texlive/2009/texmf-var"
fi
# Enforce that these directories are in front of PATH
for p in '/usr/local/sbin' '/usr/local/bin'
do
PATH="${p}:${PATH}"
done
# Remove duplicate entries
typeset -U path
export PATH
###############################################################################
## Directories
IOSFRAMEWORKSPATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks"
FRAMEWORKDEST="${HOME}/iOS-Frameworks"
if [[ -d ${IOSFRAMEWORKSPATH} ]] && [[ ! -d ${FRAMEWORKDEST} ]]
then
ln -s "${IOSFRAMEWORKSPATH}" "${FRAMEWORKDEST}"
fi
###############################################################################
## LANGUAGE
export LANGUAGE="en_US.UTF-8"
export LC_ALL="en_US.UTF-8"
export LC_CTYPE="en_US.UTF-8"
export LC_MESSAGES="en_US.UTF-8"
export LC_COLLATE="en_US.UTF-8"
export LANG="en_US.UTF-8"
###############################################################################
## UNIX TOOLS
# Tabstops in /usr/bin/less
export LESS="-x4 -R"
###############################################################################
## XCODE SETTINGS
export DEVELOPER_DIR=`xcode-select --print-path`
###############################################################################
## RBENV SETTINGS
if command -v rbenv >/dev/null 2>&1
then
export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init -)"
fi
###############################################################################
## NVM SETTINGS
export NVM_DIR="$HOME/.nvm"
[ -s "/usr/local/opt/nvm/nvm.sh" ] && . "/usr/local/opt/nvm/nvm.sh" # This loads nvm
###############################################################################
## COMPILER & LINKER FLAGS
export CPPFLAGS=-I/usr/local/opt/openssl/include
export LDFLAGS=-L/usr/local/opt/openssl/lib
###############################################################################
## SDKMAN SETTINGS
export SDKMAN_DIR="$HOME/.sdkman"
[[ -s "$HOME/.sdkman/bin/sdkman-init.sh" ]] && source "$HOME/.sdkman/bin/sdkman-init.sh"