We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad511a2 commit bfa892fCopy full SHA for bfa892f
cookbook/direnv.md
@@ -19,6 +19,12 @@ let-env config = {
19
pre_prompt: [{ ||
20
let direnv = (direnv export json | from json | default {})
21
let env_to_convert = ($direnv | transpose key value | where key in ($env.ENV_CONVERSIONS | columns))
22
+ let converted_values = ($env_to_convert | each {|it|
23
+ let convert = ($env.ENV_CONVERSIONS | get $it.key | get from_string)
24
+ let value = (do $convert $it.value)
25
+ { $it.key: $value }
26
+ } | into record)
27
+ $direnv | merge $converted_values | load-env
28
}]
29
}
30
0 commit comments