From 5ac1ff2135dd2e20c63ee7588d41e2fc3fcc3083 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 26 Jan 2025 11:39:05 +0900 Subject: chore: update README --- README | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'README') diff --git a/README b/README index 3e07f2e..0ed3673 100644 --- a/README +++ b/README @@ -63,6 +63,8 @@ $ tic -xe tmux-256color /var/tmp/tmux-256color.info # Garbage Collection -2. `home-manager expire-generations '-1 month'` -3. `nix profile wipe-history` -4. `nix store gc` +// 1. `home-manager remove-generations $({ home-manager generations | tail +4 && date -d '-1 month' '+%Y-%m-%d %H:%M : id DELETE ->'; } | sort -r | sed -n '/: id DELETE ->/,$p' | tail +2 | grep -o ': id [0-9]* ->' | awk '{ print $3; }')` + +1. `home-manager expire-generations '-1 month'` +2. `nix profile wipe-history` +3. `nix store gc` -- cgit v1.2.3-70-g09d2