load .env file before initializing flake

This allows specifying DIRENV_DEVSHELL in .env
This commit is contained in:
Benjamin Lee 2024-05-30 00:49:56 -07:00
parent 467417c32a
commit 823515b475
No known key found for this signature in database
GPG key ID: FB9624E2885D55A4

4
.envrc
View file

@ -1,7 +1,7 @@
#!/usr/bin/env bash
dotenv_if_exists
use flake ".#${DIRENV_DEVSHELL:-default}"
PATH_add bin
dotenv_if_exists