# EXAMPLE thin ~/.bashrc — no secrets.
# Prefer:
#   bash /path/to/dreamcatcher-foundry/lib/etc/bin/use-from-foundry.sh
#   # or
#   bash /path/to/dreamcatcher-foundry/lib/etc/bin/install-to-home.sh
#
# One-shot (any shell session):
#   . /path/to/dreamcatcher-foundry/lib/etc/shared/startup.bash

# LIB_ETC unified startup (lib/etc)
export DREAMCATCHER_FOUNDRY="${DREAMCATCHER_FOUNDRY:-}"
if [[ -z ${LIB_ETC:-} || ! -f ${LIB_ETC}/VERSION ]]; then
  for _root in \
    "${DREAMCATCHER_FOUNDRY}" \
    /Volumes/fs1/acornsoft/dreamcatcher-foundry \
    "$HOME/com.acornsoft365/dreamcatcher-foundry" \
    "$HOME/source/repos/dreamcatcher-foundry" \
    /mnt/k/com.acornsoft365/dreamcatcher-foundry
  do
    [[ -n ${_root:-} && -f $_root/lib/etc/VERSION ]] || continue
    export LIB_ETC="$_root/lib/etc"
    export DREAMCATCHER_FOUNDRY="$_root"
    break
  done
  unset _root
fi
export LIB_ETC="${LIB_ETC:-$HOME/lib/etc}"
# shellcheck source=/dev/null
[[ -f $LIB_ETC/shared/startup.bash ]] && . "$LIB_ETC/shared/startup.bash"
# host-local only below — no secrets
