-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdot_bash_profile
48 lines (38 loc) · 1.57 KB
/
dot_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
45
46
47
48
# SPDX-FileCopyrightText: Chris Wilson <christopher.david.wilson@gmail.com>
#
# SPDX-License-Identifier: MIT
# The Bash personal login script, executed for bash login shells
# https://www.gnu.org/software/bash/manual/html_node/Bash-Startup-Files.html
# shellcheck shell=bash
# ------------------------------------------------------------------------------
# Debug info
# ------------------------------------------------------------------------------
export BASH_PROFILE_WAS_SOURCED=1
# ------------------------------------------------------------------------------
# Source shell functions
# ------------------------------------------------------------------------------
if [[ -r "${HOME}/.bash_functions" ]]; then
# shellcheck source=dot_bash_functions
. "${HOME}/.bash_functions"
fi
# ------------------------------------------------------------------------------
# source Bourne compatible .profile first
# ------------------------------------------------------------------------------
if [[ -r "${HOME}/.profile" ]]; then
# shellcheck source=dot_profile
. "${HOME}/.profile"
fi
# ------------------------------------------------------------------------------
# source .bashrc if this is an interactive shell
# ------------------------------------------------------------------------------
# https://www.gnu.org/software/bash/manual/html_node/Is-this-Shell-Interactive_003f.html
case "$-" in
*i*)
# This shell is interactive
# shellcheck source=dot_bashrc
. "${HOME}/.bashrc"
;;
*)
# This shell is not interactive
;;
esac