diff --git a/.envrc b/.envrc index 0f94eed..a7a9086 100644 --- a/.envrc +++ b/.envrc @@ -1,2 +1,11 @@ +#!/usr/bin/env bash +# the shebang is ignored, but nice for editors + # shellcheck shell=bash -use flake +if type -P lorri &>/dev/null; then + eval "$(lorri direnv --flake .)" +else + echo 'while direnv evaluated .envrc, could not find the command "lorri" [https://github.com/nix-community/lorri]' + use flake +fi +