diff --git a/cookbook/direnv.md b/cookbook/direnv.md index 59c059efcef..19145259550 100644 --- a/cookbook/direnv.md +++ b/cookbook/direnv.md @@ -38,10 +38,14 @@ $env.config.hooks.env_change.PWD ++= [{|| return } - 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 + direnv export json + | from json + | default {} + | update cells { + # 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 + } PATH + | load-env }] ```