From b05faea0e0ec0cb6402d4d186de33d36125a8ee4 Mon Sep 17 00:00:00 2001 From: rdahlke Date: Wed, 12 Aug 2026 23:32:32 -0400 Subject: [PATCH] convert the direnv export PATH to a list before loading it into env --- cookbook/direnv.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/cookbook/direnv.md b/cookbook/direnv.md index 9f8c44e1ca3..59c059efcef 100644 --- a/cookbook/direnv.md +++ b/cookbook/direnv.md @@ -38,9 +38,10 @@ $env.config.hooks.env_change.PWD ++= [{|| return } - direnv export json | from json | default {} | load-env - # If direnv changes the PATH, it will become a string and we need to re-convert it to a list - $env.PATH = do (env-conversions).path.from_string $env.PATH + direnv export json | from json | default {} | update cells --columns [ PATH ] { + # If direnv changes the PATH, it will become a string and we need to re-convert it to a list + do (env-conversions).path.from_string $in + } | load-env }] ```