Fix loading of nu project commands

main
Julius Riegel 7 months ago
parent 2a54d3e5af
commit 2180b8062e

@ -2,7 +2,7 @@ theme = "dracula-purple"
[editor] [editor]
rulers = [120] rulers = [120]
shell = ["nu", "-c"] shell = ["nu", "--stdin", "-c"]
true-color = true true-color = true
cursorline = true cursorline = true
color-modes = true color-modes = true

@ -195,11 +195,11 @@ $env.config = {
direnv export json | from json | default {} | load-env direnv export json | from json | default {} | load-env
{{/if-installed}} {{/if-installed}}
}, { }, {
condition: {|before, after| ("project.nu" in (overlay list)) and ($before == null or ($after not-in $before)) } condition: {|before, after| ("nuenv.nu" in (overlay list)) and ($before == null or ($before not-in $after)) }
code: "overlay hide project.nu --keep-env [ PWD ]" code: "overlay hide nuenv.nu --keep-env [ PWD ]"
}, { }, {
condition: {|before, after| ("./project.nu" | path exists) and ($before == null or ($after not-in $before)) }, condition: {|before, after| "./nuenv.nu" | path exists },
code: "overlay use ./project.nu as project.nu" code: "overlay use ./nuenv.nu as nuenv.nu"
}] }]
} }
} }

Loading…
Cancel
Save