2023-12-23 20:13:47 -07:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
# Source all bash configs files, except prompt and profile
|
|
|
|
# Adapted from https://github.com/mathiasbynens/dotfiles/blob/main/.bash_profile
|
|
|
|
#
|
|
|
|
# Source bash_functions twice to fix interdependency between bash_functions and
|
|
|
|
# bash_aliases
|
|
|
|
source ~/.bash_env
|
|
|
|
source ~/.bash_functions
|
|
|
|
source ~/.bash_aliases
|
|
|
|
source ~/.bash_functions
|
|
|
|
|
2023-12-23 20:14:14 -07:00
|
|
|
if [[ -n $VIMRUNTIME && -z $IS_VIFM_NEST ]]; then
|
|
|
|
# Prevent recursive sourcing
|
|
|
|
source ~/.bash_profile
|
|
|
|
fi
|
|
|
|
|
2023-12-23 20:13:47 -07:00
|
|
|
# shopt -s histappend
|
|
|
|
|
|
|
|
# Suppress prompt warning when switching users
|
|
|
|
if [[ -r ~/.git-prompt.bash ]]; then
|
|
|
|
source ~/.git-prompt.bash
|
|
|
|
fi
|