Fix loading of nu project commands

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

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

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

Loading…
Cancel
Save