forked from csilvers/khan-dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.profile.khan
executable file
·43 lines (37 loc) · 1.79 KB
/
.profile.khan
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
################################################################################
# Khan Academy specific .profile
#
# The difference between .bash_profile and .profile is that the latter
# is called for all sh-compatible shells. So we put non-bashisms here
# and bashisms in .bash_profile.
# Add frankenserver bins to PATH
export PATH="$HOME/khan/webapp/third_party/frankenserver:$PATH"
# Add devtools bins to PATH
# TODO(mroth): rewrite these paths at install time based on user preference
KA_DEVROOT="$HOME/khan/devtools"
export PATH="$KA_DEVROOT/arcanist/khan-bin:$PATH"
export PATH="$KA_DEVROOT/git-workflow/bin:$PATH"
export PATH="$KA_DEVROOT/ka-clone/bin:$PATH"
export PATH="$KA_DEVROOT/khan-linter/bin:$PATH"
# Make sure git (and other apps) prefer 'vim' to 'vi'.
: ${EDITOR:=vim}
# Set a high limit for open file descriptors per shell.
# The default on OS X is 256; we increase it to 1024--the default value of
# `sysctl kern.maxfilesperproc`, which `ulimit -n` must not exceed.
ulimit -S -n 1024
# Mac-specific stuff.
if [ `uname -s` = Darwin ]; then
# Numpy/etc use flags clang doesn't know about. This is only
# needed for mavericks and above.
if ! expr "`sw_vers -productVersion`" : '10\.[0-8]$' >/dev/null && \
! expr "`sw_vers -productVersion`" : '10\.[0-8]\.' >/dev/null; then
CPPFLAGS="-Qunused-arguments $CPPFLAGS"
CFLAGS="-Qunused-arguments $CFLAGS"
# This ARCHFLAGS is needed until we have pyobjc 3.0, according to
# https://bitbucket.org/ronaldoussoren/pyobjc/issue/66/cannot-locate-a-working-compiler-error
ARCHFLAGS="-Wno-error=unused-command-line-argument-hard-error-in-future $ARCHFLAGS"
export CPPFLAGS CFLAGS ARCHFLAGS
fi
# We use the timeout command a lot, but os x calls it `gtimeout`.
alias timeout=gtimeout
fi