-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.bashrc
More file actions
29 lines (25 loc) · 700 Bytes
/
Copy path.bashrc
File metadata and controls
29 lines (25 loc) · 700 Bytes
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
#!/bin/bash
# shellcheck source=./.bash-functions.sh
source "$HOME/.bash-functions.sh"
# source local overrides
# shellcheck source=./.bash-first.sh
LOCAL_SH="$HOME/.bash-first.sh"
if [ -e "$LOCAL_SH" ]; then
source "$LOCAL_SH"
fi
# shellcheck source=./.bash-init/start.sh
source "$HOME/.bash-init/start.sh"
for SH in $(find $HOME/.bash-init/*.sh | sort -n); do
base=$(basename "$SH")
if [ "$base" == "start.sh" ] || [ "$base" == "end.sh" ]; then
continue
fi
source "$SH"
done
# shellcheck source=./.bash-init/end.sh
source "$HOME/.bash-init/end.sh"
# shellcheck source=./.bash-last.sh
LAST_SH="$HOME/.bash-last.sh"
if [ -e "$LAST_SH" ]; then
source "$LAST_SH"
fi