-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bash_profile
32 lines (31 loc) · 1.5 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
# ~/.bash_profile is executed for login shells
if tty -s; then
echo "running .bash_profile"
[ -f ${HOME}/.bashrc ] && . ${HOME}/.bashrc
fi
#For Bash, they work as follows. Read down the appropriate column.
#Executes A, then B, then C, etc. The B1, B2, B3 means it executes only the first of those files found.
#+----------------+-----------+-----------+------+
#| |Interactive|Interactive|Script|
#| |login |non-login | |
#+----------------+-----------+-----------+------+
#|/etc/profile | A | | |
#+----------------+-----------+-----------+------+
#|/etc/bash.bashrc| | A | |
#+----------------+-----------+-----------+------+
#|~/.bashrc | | B | |
#+----------------+-----------+-----------+------+
#|~/.bash_profile | B1 | | |
#+----------------+-----------+-----------+------+
#|~/.bash_login | B2 | | |
#+----------------+-----------+-----------+------+
#|~/.profile | B3 | | |
#+----------------+-----------+-----------+------+
#|BASH_ENV | | | A |
#+----------------+-----------+-----------+------+
#| | | | |
#+----------------+-----------+-----------+------+
#| | | | |
#+----------------+-----------+-----------+------+
#|~/.bash_logout | C | | |
#+----------------+-----------+-----------+------+