Add additional config location

This commit is contained in:
JeremyStar™ 2023-12-08 17:29:48 +01:00
parent 93f8cc06d1
commit 54e2228857

View file

@ -13,6 +13,8 @@ fi
# source configuration file
if [ -f "${HOME}/.jstmbash/config.env" ] && [ "${JSTMBASH_LOCAL_CONFIG}" != "true" ]; then
source "${HOME}/.jstmbash/config.env"
elif [ -f "${HOME}/.config/jstmbash.env" ] && [ "${JSTMBASH_LOCAL_CONFIG}" != "true" ]; then
source "${HOME}/.config/jstmbash.env"
elif [ -f "/etc/jstmbash/config.env" ] && [ "${JSTMBASH_LOCAL_CONFIG}" != "true" ]; then
source "/etc/jstmbash/config.env"
elif [ -f "$(pwd)/config.env" ]; then