This commit is contained in:
Tao Tien 2025-12-03 01:44:01 -08:00
parent fada7e988b
commit f789d8daec
3 changed files with 4 additions and 19 deletions

View file

@ -9,7 +9,7 @@ def ns [...packages: string] {
# nix search nixpkgs $package
# }
def --wrapped rebuild [--force, subcommand, ...rest] {
def --wrapped rebuild [--force (-f), subcommand, ...rest] {
if not (
df -h | detect columns --guess | where "Mounted on" == "/" or "Mounted on" == "/boot" | get Use% | each {parse "{usage}%" | get usage | into int} | flatten | all {$in < 99}
) and not $force {