Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions cookbook/direnv.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
}]
```

Expand Down