-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bash_profile
28 lines (22 loc) · 946 Bytes
/
.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
#
# bash configuration entrypoint for interactive instances
#
# Load all custom paths and manpaths from ~/.paths and ~/.manpaths
export STARTING_PATH="${STARTING_PATH-$PATH}"
[[ -e ~/.shell/paths ]] && PATH="${STARTING_PATH}:$(tr -s '\n' ':' < ~/.shell/paths | sed -e "s+~+$HOME+g")"
[[ -e ~/.shell/manpaths ]] && MANPATH=$(tr -s '\n' ':' < ~/.shell/manpaths):${MANPATH}
# Detect if homebrew is installed and load 'bash-completion@2' if it is.
[[ $(which brew) ]] && [[ -r "$(brew --prefix)/etc/profile.d/bash_completion.sh" ]] && \
source "$(brew --prefix)/etc/profile.d/bash_completion.sh"
# Load all shell configs
for file in exports aliases functions cloud extra bash_prompt; do
file="${HOME}/.shell/${file}"
[[ -e "${file}" ]] && source "${file}"
done
#
# General bash configuration, see:
# https://www.gnu.org/software/bash/manual/html_node/The-Shopt-Builtin.html
#
shopt -s nocaseglob
shopt -s histappend
shopt -s checkwinsize