[home] Remove module
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).
This commit is contained in:
parent
a64744dd8d
commit
6ac0b683a3
3 changed files with 0 additions and 0 deletions
|
|
@ -1,29 +0,0 @@
|
|||
#!/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
|
||||
Loading…
Add table
Add a link
Reference in a new issue