about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEmile <git@emile.space>2024-12-03 21:58:14 +0100
committerEmile <git@emile.space>2024-12-03 21:58:14 +0100
commita4ab9861dbfe71148b6de786ac35d6013d200e10 (patch)
treea4e075cffe9936cd3acd981e0fde6c61673395aa
parentb4170e99504551e2c55aca761d223ce4dc2d81d0 (diff)
(caladan) new alias delete-empty
-rw-r--r--nix/hosts/caladan/aliases.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/nix/hosts/caladan/aliases.nix b/nix/hosts/caladan/aliases.nix
index a48d403..d65bc14 100644
--- a/nix/hosts/caladan/aliases.nix
+++ b/nix/hosts/caladan/aliases.nix
@@ -26,6 +26,8 @@
   grep = "grep --color=auto";
   nix-stray-roots = ''nix-store --gc --print-roots | egrep -v "^(/nix/var|/run/w+-system|{memory)"'';
 
+  delete-empty = "sed -r '/^\s*$/d'";
+
   holdmybeer = "sudo ";
 
   servethis = "python3 -m http.server";