Add project commands

main
Julius Riegel 7 months ago
parent 9c99fe69a1
commit bf305de91e

@ -199,7 +199,7 @@ $env.config = {
code: "overlay hide nuenv.nu --keep-env [ PWD ]" code: "overlay hide nuenv.nu --keep-env [ PWD ]"
}, { }, {
condition: {|before, after| "./nuenv.nu" | path exists }, condition: {|before, after| "./nuenv.nu" | path exists },
code: "overlay use ./nuenv.nu as nuenv.nu" code: "let dir = $env.PWD; overlay use ./nuenv.nu as nuenv.nu; cd $dir"
}] }]
} }
} }

@ -0,0 +1,14 @@
const HOMENIX = "~/.config/home-manager/home.nix"
export def apply [] {
let homechksum = shasum ~/.config/home-manager/home.nix
silo apply
if (shasum ~/.config/home-manager/home.nix) != $homechksum {
silo apply
}
}
export def auto-apply [] {
watch . {|| apply}
}
Loading…
Cancel
Save