Skip to content

Commit fb3c7a2

Browse files
Jasha10fdncred
andauthored
Update direnv.md - use ENV_CONVERSIONS (#1629)
* Update direnv.md - use ENV_CONVERSIONS * Update cookbook/direnv.md * Update cookbook/direnv.md Co-authored-by: Darren Schroeder <[email protected]> --------- Co-authored-by: Darren Schroeder <[email protected]>
1 parent f00a1e9 commit fb3c7a2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cookbook/direnv.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ $env.config = {
2222
}
2323
2424
direnv export json | from json | default {} | load-env
25+
if 'ENV_CONVERSIONS' in $env and 'PATH' in $env.ENV_CONVERSIONS {
26+
$env.PATH = do $env.ENV_CONVERSIONS.PATH.from_string $env.PATH
27+
}
2528
}]
2629
}
2730
}

0 commit comments

Comments
 (0)