_source_basedir="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &> /dev/null && pwd)"
# Source all the overrides in this folder
for source in $(find "${_source_basedir}" -type f | grep -Ev "_all|terminal_fancyfying"); do
  . "${source}"
done
. "${_source_basedir}/terminal_fancyfying_${TERMINAL_FANCYFY}"

# If the file ~/.bash_sources exist, source every line it contains
if [ -f ~/.bash_sources ]; then
  while IFS= read -r line; do
    # Skip empty lines and comments (#)
    if [ -n "$line" ] && ! [[ "$line" == \#* ]]; then
      . "$line"
    fi
  done < ~/.bash_sources
fi
