-
Notifications
You must be signed in to change notification settings - Fork 2
/
.bash_profile
44 lines (40 loc) · 1.27 KB
/
.bash_profile
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
# .bash_profile file
# By Yasser Elsayed
#
# Concepts:
# http://www.joshstaiger.org/archives/2005/07/bash_profile_vs.html
#
# 1) .bashrc is the *non-login* config for bash, run in scripts and after
# first connection.
#
# 2) .bash_profile is the *login* config for bash, launched upon first
# connection (in Ubuntu)
#
# 3) .bash_profile imports .bashrc in our script, but not vice versa.
#
# 4) .bashrc imports .bashrc_custom in our script, which can be used to
# override variables specified here.
#
## -----------------------
## -- 1) Import .bashrc --
## -----------------------
# Factor out all repeated profile initialization into .bashrc
# - All non-login shell parameters go there
# - All declarations repeated for each screen session go there
if [ -f ~/.bashrc ]; then
source ~/.bashrc
fi
# Configure PATH
# - These are line by line so that you can kill one without affecting the others.
# - Lowest priority first, highest priority last.
export PATH=$PATH
export PATH=~/.scripts/:$PATH
export PATH=$HOME/bin:$PATH
export PATH=$HOME/bin/.npm/bin:$PATH
export PATH=/usr/bin:$PATH
export PATH=/usr/local/bin:$PATH
export PATH=/usr/local/sbin:$PATH
export PATH=~/.npm-global/bin:$PATH
if [ -f ~/bash_profile.local ]; then
source ~/.bash_profile.local
fi