@ -194,6 +194,12 @@ $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| ("./project.nu" | path exists) and ($before == null or ($after not-in $before)) },
code: "overlay use ./project.nu as project.nu"
}]
}
@ -351,9 +351,14 @@ export def gc [
let m = $message | with-flag -m
$message | save -f .git/COMMIT_EDITMSG
git commit -v -e ...$m ...$a ...$n ...$k
} else {
if $message != null {
git commit -v ...$m ...$a ...$n ...$k ...$e