From 12af22f93a8a5599ef8b3897341274a50e7da9f5 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sun, 5 Jan 2025 12:10:44 +0100 Subject: Revert "disable lorri (broken on darwin)" This reverts commit b66c1ed87b556844421886ead373ffdd4ca25663. --- .envrc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.envrc b/.envrc index a5b4b96..c0b3b3e 100644 --- a/.envrc +++ b/.envrc @@ -1,4 +1,12 @@ layout go -use flake +if type -P lorri &>/dev/null; then + if test -n "$TMPDIR"; then + TMPDIR=$(readlink -f $TMPDIR) + fi + eval "$(lorri direnv --flake .)" +else + echo 'while direnv evaluated .envrc, could not find the command "lorri" [https://github.com/nix-community/lorri]' + use nix +fi dotenv -- cgit 1.4.1