Marty Oehme
6ac0b683a3
Removed home module, since it harbors three necessary files for other modules: the basic configuration files for bash, and the environment setup for zsh to work with xdg specifications. While a descriptive module, the splitting enables further modularization and is more coherent towards their specific uses (bash and zsh setup).
29 lines
726 B
Bash
29 lines
726 B
Bash
#!/usr/bin/env bash
|
|
#
|
|
# ~/.bash_profile
|
|
#
|
|
# shellcheck disable=SC1090
|
|
|
|
# ensure bash is set up for its initial sourcing
|
|
export XDG_CONFIG_HOME=${XDG_CONFIG_HOME:-"$HOME/.config"}
|
|
|
|
# load global sh env vars
|
|
[ -f "$XDG_CONFIG_HOME/sh/env" ] && source "$XDG_CONFIG_HOME/sh/env"
|
|
if [ -d "$XDG_CONFIG_HOME/sh/env.d" ]; then
|
|
for _env in "$XDG_CONFIG_HOME/sh/env.d"/*.sh; do
|
|
. "$_env"
|
|
done
|
|
unset _env
|
|
fi
|
|
|
|
# load profile files vars
|
|
[ -f "$XDG_CONFIG_HOME/sh/profile" ] && source "$XDG_CONFIG_HOME/sh/profile"
|
|
if [ -d "$XDG_CONFIG_HOME/sh/profile.d" ]; then
|
|
for _profile in "$XDG_CONFIG_HOME/sh/profile.d"/*.sh; do
|
|
. "$_profile"
|
|
done
|
|
unset _profile
|
|
fi
|
|
|
|
# shellcheck disable=SC1090
|
|
[[ -f ~/.bashrc ]] && . ~/.bashrc
|