Files
wonderwall/.envrc
2024-07-30 13:43:51 +02:00

15 lines
378 B
Bash

#!/usr/bin/env bash
# Export all:
# - (should be) .gitignored
# - (potentially) secret environment variables
# - from dotenv-formatted files w/names starting w/`.env`
DOTENV_FILES="$(find . -maxdepth 1 -type f -name '.env*' -and -not -name '.envrc')"
for file in ${DOTENV_FILES}; do
dotenv "${file}"
done
export DOTENV_FILES
# Load nix env for all the cool people
use flake