Skip to content

Commit 1acd067

Browse files
committed
Fix $env.PATH for direnv
1 parent b7869a8 commit 1acd067

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

nu-hooks/nu-hooks/direnv/config.nu

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,6 @@
2323
}
2424

2525
direnv export json | from json | default {} | load-env
26+
# Direnv outputs $PATH as a string, but nushell silently breaks if isn't a list-like table.
27+
$env.PATH = $env.PATH | split row ':'
2628
}

0 commit comments

Comments
 (0)