From e58985cae73bbf308d3e816a90b5fa724a84b013 Mon Sep 17 00:00:00 2001 From: Kiara Grouwstra Date: Mon, 21 Oct 2024 18:27:52 +0200 Subject: [PATCH] chore: add lorri to prevent direnv from blocking, closes #147 --- .envrc | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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 + -- 2.44.1