nix

configuration files that power my machines
Log | Files | Refs | README | LICENSE

commit 2883b22895117eeaabeaed0a394ee8c0dc4f1ffb
parent 6242f8745f9186092d0de21984db55ef4a7b7e79
Author: mtmn <miro@haravara.org>
Date:   Tue,  2 Jun 2026 00:11:54 +0200

chore: add `targarba` shell function

Diffstat:
Mmodules/mixins/dotfiles/config/shell/rc/functions | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/modules/mixins/dotfiles/config/shell/rc/functions b/modules/mixins/dotfiles/config/shell/rc/functions @@ -75,6 +75,11 @@ tarstamp() { tarsnap -c -f "$1-$(date +%Y-%m-%d_%H:%M:%S)" "$2" } +targarba() { + : "${1?name required}" + tarsnap --list-archives | grep "^$1-" | prunef --keep-monthly 6 "$1-%Y-%m-%d_%H:%M:%S" | xargs -I{} tarsnap -d -f {} +} + tempfox() { profile_dir=$(mktemp -d) trap 'rm -rf $profile_dir' EXIT