-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbash_profile
More file actions
executable file
·42 lines (34 loc) · 1007 Bytes
/
bash_profile
File metadata and controls
executable file
·42 lines (34 loc) · 1007 Bytes
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
# .bash_profile
# REMEMBER: forking is really expensive in cygwin. Don't fork as much as
# possible in here to speed-up cygwin startup
# -------------------- Import bashrc
if [ -f ~/.bashrc ]; then
source ~/.bashrc
fi
# -------------------- Path
prepend_to_path() {
if [[ ! ":$PATH:" =~ ":$1:" ]]; then
echo "$1:$PATH"
else
echo "$PATH"
fi
}
append_to_path() {
if [[ ! ":$PATH:" =~ ":$1:" ]]; then
echo "$PATH:$1"
else
echo "$PATH"
fi
}
export PATH="$(append_to_path "$HOME/bin")"
export PATH="$(append_to_path "$HOME/.local/bin")"
export PATH="$(append_to_path "/root/bin")"
export PATH="$(append_to_path "/sbin")"
export PATH="$(prepend_to_path "/opt/local/bin")"
export PATH="$(prepend_to_path "/opt/local/sbin")"
export PATH="$(prepend_to_path "/usr/local/bin")"
export PATH="$(prepend_to_path "/usr/local/sbin")"
export PATH="$(prepend_to_path "$HOME/.fastlane/bin")"
export LC_COLLATE=C
export EDITOR="vim"
# vim: set ts=2 sw=2 et: