Skip to content

Commit 520618c

Browse files
Simplify env filtering
1 parent bfa892f commit 520618c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cookbook/direnv.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ let-env config = {
1818
hooks: {
1919
pre_prompt: [{ ||
2020
let direnv = (direnv export json | from json | default {})
21-
let env_to_convert = ($direnv | transpose key value | where key in ($env.ENV_CONVERSIONS | columns))
21+
let env_to_convert = ($direnv | transpose key value | where key in $env.ENV_CONVERSIONS)
2222
let converted_values = ($env_to_convert | each {|it|
2323
let convert = ($env.ENV_CONVERSIONS | get $it.key | get from_string)
2424
let value = (do $convert $it.value)

0 commit comments

Comments
 (0)