Add additional config location
This commit is contained in:
parent
93f8cc06d1
commit
54e2228857
1 changed files with 3 additions and 1 deletions
|
@ -13,6 +13,8 @@ fi
|
||||||
# source configuration file
|
# source configuration file
|
||||||
if [ -f "${HOME}/.jstmbash/config.env" ] && [ "${JSTMBASH_LOCAL_CONFIG}" != "true" ]; then
|
if [ -f "${HOME}/.jstmbash/config.env" ] && [ "${JSTMBASH_LOCAL_CONFIG}" != "true" ]; then
|
||||||
source "${HOME}/.jstmbash/config.env"
|
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
|
elif [ -f "/etc/jstmbash/config.env" ] && [ "${JSTMBASH_LOCAL_CONFIG}" != "true" ]; then
|
||||||
source "/etc/jstmbash/config.env"
|
source "/etc/jstmbash/config.env"
|
||||||
elif [ -f "$(pwd)/config.env" ]; then
|
elif [ -f "$(pwd)/config.env" ]; then
|
||||||
|
@ -293,4 +295,4 @@ fi
|
||||||
if [ "${JSTMBASH_WARNINGS_EXA_UNMAINTAINED}" == "true" ] && which exa &> /dev/null; then
|
if [ "${JSTMBASH_WARNINGS_EXA_UNMAINTAINED}" == "true" ] && which exa &> /dev/null; then
|
||||||
echo ":: Warning: exa is unmaintained software and should be avoided."
|
echo ":: Warning: exa is unmaintained software and should be avoided."
|
||||||
echo " Use eza (https://eza.rocks) as a replacement."
|
echo " Use eza (https://eza.rocks) as a replacement."
|
||||||
fi
|
fi
|
||||||
|
|
Reference in a new issue