#!/usr/bin/env bash

cat <<'EOF' >.mise.toml
[env]
_.file = "env.d/*.env"
EOF

mkdir -p env.d

echo "VAR1=1" >env.d/1.env
echo "VAR2=2" >env.d/2.env

# mise trust --verbose
mise env -s bash
assert_contains "mise env -s bash" "VAR1=1"
assert_contains "mise env -s bash" "VAR2=2"
