File tree 5 files changed +35
-6
lines changed
5 files changed +35
-6
lines changed Original file line number Diff line number Diff line change 1
1
https://wiki.archlinux.org/title/Bash
2
2
3
- All interactive shells source /etc/bash.bashrc and ~/.bashrc, while
4
- interactive login shells also source /etc/profile and ~/.bash_profile.
3
+ ---
5
4
5
+ +----------------+-----------+-----------+------+
6
+ | |Interactive|Interactive|Script|
7
+ | |login |non-login | |
8
+ +----------------+-----------+-----------+------+
9
+ |/etc/profile | A | | |
10
+ +----------------+-----------+-----------+------+
11
+ |/etc/bash.bashrc| | A | |
12
+ +----------------+-----------+-----------+------+
13
+ |~/.bashrc | | B | |
14
+ +----------------+-----------+-----------+------+
15
+ |~/.bash_profile | B1 | | |
16
+ +----------------+-----------+-----------+------+
17
+ |~/.bash_login | B2 | | |
18
+ +----------------+-----------+-----------+------+
19
+ |~/.profile | B3 | | |
20
+ +----------------+-----------+-----------+------+
21
+ |BASH_ENV | | | A |
22
+ +----------------+-----------+-----------+------+
23
+ | | | | |
24
+ +----------------+-----------+-----------+------+
25
+ | | | | |
26
+ +----------------+-----------+-----------+------+
27
+ |~/.bash_logout | C | | |
28
+ +----------------+-----------+-----------+------+
6
29
---
7
30
8
31
https://www.gnu.org/software/bash/manual/bash.html#Bash-Startup-Files
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ if [[ -f " ${HOME} /.profile" ]]; then
4
+ source " ${HOME} /.profile"
5
+ fi
6
+
7
+ if [[ -f " ${HOME} /.bashrc" ]]; then
8
+ source " ${HOME} /.bashrc"
9
+ fi
Original file line number Diff line number Diff line change 155
155
unset -v dir
156
156
157
157
unset -f __executable_exists __is_readable_file __path_append __path_prepend __path_remove
158
-
159
- if [ -n " ${BASH_VERSION:- } " ] && [ -f " ${HOME} /.bashrc" ]; then
160
- . " ${HOME} /.bashrc"
161
- fi
Original file line number Diff line number Diff line change
1
+ .config/bash/profile.bash
You can’t perform that action at this time.
0 commit comments