forked from cypher/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzprofile
79 lines (60 loc) · 1.92 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
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
# Sourced in login shells, before .zshrc
# Add man dirs from Homebrew:
# sudo -e /etc/manpaths.d/homebrew
# Add line "/usr/local/share/man" (Assuming /usr/local is your Homebrew prefix)
# Node
if [[ -d "/usr/local/lib/node_modules" ]]
then
NODE_PATH="${NODE_PATH}:/usr/local/lib/node_modules"
fi
export NODE_PATH
if [[ -d "/usr/local/lib/python2.7/site-packages" ]]
then
PYTHONPATH="/usr/local/lib/python2.7/site-packages:${PYTHONPATH}"
fi
export PYTHONPATH
if type xcode-select > /dev/null 2>&1
then
export XCODE="$(xcode-select --print-path)"
export PATH=$PATH:$XCODE/Tools
fi
if [[ -d "${HOME}/go" ]]
then
export GOPATH="${HOME}/go"
export PATH=$PATH:$GOPATH/bin
fi
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"
# Set favourite editor
export VISUAL="vim -f"
export EDITOR=$VISUAL
export SVN_EDITOR=$VISUAL
export PSQL_EDITOR="vim -c ':set ft=sql'"
export LESS="-R"
export CLICOLOR=1
export PAGER="less"
# Rubinius
export RBXOPT="-Xagent.start -X19"
# The initial number of heap slots as well as the minimum number of slots allocated.
export RUBY_GC_HEAP_INIT_SLOTS=1000000
export RUBY_HEAP_SLOTS_INCREMENT=1000000
export RUBY_HEAP_SLOTS_GROWTH_FACTOR=1
# The number of C data structures that can be allocated before the GC kicks in.
# If set too low, the GC kicks in even if there are still heap slots available.
export RUBY_GC_MALLOC_LIMIT=1000000000
# The minimum number of heap slots that should be available after the GC runs.
# If they are not available then, ruby will allocate more slots.
export RUBY_HEAP_FREE_MIN=500000
# 37signals settings
# RUBY_GC_HEAP_INIT_SLOTS=600000
# RUBY_GC_MALLOC_LIMIT=59000000
# RUBY_HEAP_FREE_MIN=100000
# Twitter settings
# RUBY_GC_HEAP_INIT_SLOTS=500000
# RUBY_HEAP_SLOTS_INCREMENT=250000
# RUBY_HEAP_SLOTS_GROWTH_FACTOR=1
# RUBY_GC_MALLOC_LIMIT=50000000