-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpath
More file actions
71 lines (54 loc) · 1.86 KB
/
Copy pathpath
File metadata and controls
71 lines (54 loc) · 1.86 KB
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
# Default PATH for Mac OS X 10.7
# /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
# Default PATH for some older Mac OS X version
#PATH="${PATH}:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin"
# Append new folder to variable (if it exists)
append()
{
[ -d "$1" ] && NEWPATH="${NEWPATH}:$1"
}
# User specific folders
append "$HOME/bin"
append "$HOME/.dotfiles/bin"
# Python / Haskell stack
append "${HOME}/.local/bin"
# Machine local folders
append "/usr/local/bin"
append "/usr/local/sbin"
# MacPorts
append "/opt/local/bin"
append "/opt/local/sbin"
append "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin"
append "/opt/local/Library/Frameworks/Python.framework/Versions/3.6/bin"
# Xcode tools
append "/Applications/Xcode.app/Contents/Developer/Tools"
# Heroku
append "/usr/local/heroku/bin"
# Git
append "/opt/local/share/git/contrib/diff-highlight"
# Android development
append "$HOME/Applications/Android Studio.app/sdk/tools"
append "$HOME/Applications/Android Studio.app/sdk/platform-tools"
# WebKit JavaScript interpreter
append "/System/Library/Frameworks/JavaScriptCore.framework/Versions/A/Resources"
#append "/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin"
# Fink
#PATH="${PATH}:/sw/bin:/sw/sbin"
#PATH=${PATH}:/usr/local/*/bin
# Postgres.app
append "/Applications/Postgres.app/Contents/Versions/latest/bin"
# Visual Studio Code
append "$HOME/Applications/Visual Studio Code.app/Contents/Resources/app/bin"
PATH="${NEWPATH}:${PATH}"
export PATH
# NEW_C_INCLUDE_PATH=${C_INCLUDE_PATH}:/opt/local/include
# C_INCLUDE_PATH=${NEW_C_INCLUDE_PATH}
# export C_INCLUDE_PATH
# Add a few extra places to the man path
# Also add them to /usr/share/misc/man.conf
NEWMANPATH="/usr/local/man:/usr/local/share/man"
NEWMANPATH="${NEWMANPATH}:/opt/local/man:/opt/local/share/man"
MANPATH="${NEWMANPATH}:${MANPATH}"
export MANPATH
# clean up
unset append