feat: clean-bootloader alias

fix: gc-check print only first column
This commit is contained in:
Gerg-L 2025-04-03 20:28:54 -04:00
parent 037d12214d
commit bdfa33ce68
Signed by: gerg-l
SSH key fingerprint: SHA256:FPYDHIkvMocr4wdmZXpgpJjsb2Tw6rASs2ISPbOb0KI

View file

@ -17,7 +17,8 @@
pastebin = "curl -F 'clbin=<-' https://clbin.com";
termbin = "nc termbin.com 9999";
#nix stuff
gc-check = ''nix-store --gc --print-roots | egrep -v "^(/nix/var|/run/w+-system|{memory|/proc)"'';
gc-check = "nix-store --gc --print-roots | awk '{print $1}' | rg -v '^/(run/.*-system|proc|nix/var)'";
clean-bootloader = "/run/current-system/bin/switch-to-configuration boot";
#vim stuff
vi = "nvim";
vim = "nvim";