-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.bash_profile
More file actions
37 lines (30 loc) · 1.09 KB
/
.bash_profile
File metadata and controls
37 lines (30 loc) · 1.09 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
26
27
28
29
30
31
32
33
34
35
36
37
##
## bash configuration entrypoint for interactive instances
##
#
# Load all custom paths and manpaths from ~/.paths and ~/.manpaths
#
# Reset PATH to only include the paths provided by the system.
[[ -e /etc/paths ]] && PATH=$(tr -s '\n' ':' < /etc/paths)
# Add our own entries to PATH
[[ -e ~/.shell/paths ]] && PATH=${PATH}$(tr '\n\n' '\n' < ~/.shell/paths | tr -s '\n' ':')
# TODO Clean up MANPATH logic
[[ -e ~/.shell/manpaths ]] && MANPATH=$(tr -s '\n' ':' < ~/.shell/manpaths):${MANPATH}
#
# Load all shell configs
#
for file in bash_prompt exports aliases functions dev cloud extra;
do
file="${HOME}/.shell/${file}"
[[ -e "${file}" ]] && source "${file}"
done
# Load homebrew configs on macOS
[[ $(uname -s) == "Darwin" ]] && [[ -e ~/.shell/homebrew ]] && {
source ~/.shell/homebrew
}
#
# bash options (see: https://www.gnu.org/software/bash/manual/bash.html#The-Shopt-Builtin)
#
shopt -s nocaseglob # Makes filename expansion case-insensitive.
shopt -s histappend # The history list will be appended to HISTFILE.
shopt -s checkwinsize # Updates LINES and COLUMNS after non-builtin execution.