Allow the system variables to override the ones set here, this is important for linux distros such as Gentoo which provide multiple versions of some packges and their own mechanism to switch between them.
53 lines
1.2 KiB
Bash
53 lines
1.2 KiB
Bash
#!/bin/sh
|
|
|
|
# This file is only designed to load the other parts of shell.d
|
|
|
|
if [ -z "${SHELLY}" ]; then
|
|
echo "\$SHELLY is not set!" >&2
|
|
return
|
|
fi
|
|
|
|
. "${SHELLY}/programs.sh"
|
|
if [ -d "${SHELLY}/overrides.d/programs" ]; then
|
|
for file in "${SHELLY}"/overrides.d/programs/*.sh ; do
|
|
# shellcheck disable=SC1090
|
|
[ -f "$file" ] && . "$file"
|
|
done
|
|
fi
|
|
|
|
if [ -d "${SHELLY}/overrides.d/XDG" ]; then
|
|
for file in "${SHELLY}"/overrides.d/XDG/*.sh ; do
|
|
# shellcheck disable=SC1090
|
|
[ -f "$file" ] && . "$file"
|
|
done
|
|
fi
|
|
. "${SHELLY}/XDG_shenanigans.sh"
|
|
|
|
. "${SHELLY}/program_config.sh"
|
|
if [ -d "${SHELLY}/overrides.d/program_config" ]; then
|
|
for file in "${SHELLY}"/overrides.d/program_config/*.sh ; do
|
|
# shellcheck disable=SC1090
|
|
[ -f "$file" ] && . "$file"
|
|
done
|
|
fi
|
|
|
|
. "${SHELLY}/Bemenu_defaults.sh"
|
|
if [ -f "${SHELLY}/overrides.d/bemenu" ]; then
|
|
. "${SHELLY}/overrides.d/bemenu"
|
|
fi
|
|
|
|
. "${SHELLY}/Path.sh"
|
|
if [ -d "${SHELLY}/overrides.d/Path" ]; then
|
|
for file in "${SHELLY}"/overrides.d/Path/*.sh ; do
|
|
# shellcheck disable=SC1090
|
|
[ -f "$file" ] && . "$file"
|
|
done
|
|
fi
|
|
|
|
if [ -d "${SHELLY}/overrides.d/Other" ]; then
|
|
for file in "${SHELLY}"/overrides.d/Other/*.sh ; do
|
|
# shellcheck disable=SC1090
|
|
[ -f "$file" ] && . "$file"
|
|
done
|
|
fi
|