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 }] ```