#!/bin/bash # load-config.sh - Load .oac configuration file # Searches for .oac in current directory, then ~/.oac # Exports configuration as environment variables set -euo pipefail # Find config file CONFIG_FILE="" if [[ -f ".oac" ]]; then CONFIG_FILE=".oac" elif [[ -f "${HOME}/.oac" ]]; then CONFIG_FILE="${HOME}/.oac" fi # If no config file found, return defaults if [[ -z "$CONFIG_FILE" ]]; then cat <