|
|
@ -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"
|
|
|
|
}]
|
|
|
|
}]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|