-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.bash_profile
More file actions
25 lines (20 loc) · 1.08 KB
/
Copy path.bash_profile
File metadata and controls
25 lines (20 loc) · 1.08 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
################################################################################
# Some installation scripts will write to this file. If this file exists, it
# will be read and executed by the bash login shell, and the subsequent profile
# files, ~/.bash_login and ~/.profile (the generic sh profile) will be ignored.
# To prevent some installation writing to and creating any of these files and
# obfuscating an unintended profile change, keep this file, the first profile
# file checked for, and source the other two profile files here, plus the rc.
# https://www.gnu.org/software/bash/manual/html_node/Bash-Startup-Files.html
################################################################################
source-existing-file() { if [ -f "$1" ]; then source "$1"; fi; }
# Pre-hook
source-existing-file ~/.include/.pre/.bash_profile
# Profiles
source-existing-file ~/.bash_login
source-existing-file ~/.profile
# rc
# Using ubuntu's /etc/skel/.profile as our ~/.profile already sources ~/.bashrc
# source-existing-file ~/.bashrc
# Post-hook
source-existing-file ~/.include/.post/.bash_profile