From db732ac7fca6e908ff4f6245759b152914ade341 Mon Sep 17 00:00:00 2001 From: mc-fucker Date: Wed, 20 Nov 2024 16:55:27 +0100 Subject: [PATCH] let alias "dfr" ignore overlayfs and tmpfs --- modules/zsh.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/zsh.nix b/modules/zsh.nix index bab46b6..6615d74 100644 --- a/modules/zsh.nix +++ b/modules/zsh.nix @@ -29,7 +29,7 @@ with import {}; "nt" = "(cd /tmp && nixos-rebuild test)"; "ns" = "nixos-rebuild switch"; "nsu" = "nixos-rebuild switch --upgrade"; - "dfr" = "df -h | head -n +1; df -h | tail -n +2 | sort -nrk5"; + "dfr" = "df -h | head -n +1; df -h -x overlay -x tmpfs | tail -n +2 | sort -nrk5"; "d" = ''du -ahx "$PWD" --exclude=/proc| sort -rh 2>/dev/null |head -40 | sort -rh 2>/dev/null''; }; }