From 839f372f4a97408541722998c780447bc898ed7b Mon Sep 17 00:00:00 2001 From: "Azalea (on HyDEV-Daisy)" Date: Sat, 1 Oct 2022 18:28:56 -0400 Subject: [PATCH] [U] tar progress --- scripts/zshrc.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/zshrc.sh b/scripts/zshrc.sh index 04c9aec..b31a226 100755 --- a/scripts/zshrc.sh +++ b/scripts/zshrc.sh @@ -76,8 +76,9 @@ alias old-update-ssh-keys="curl -L https://github.com/Hykilpikonna.keys > ~/.ssh compress-zst() { cores=$(grep -c ^processor /proc/cpuinfo) echo "Starting ZSTD compression with $cores cores" - tar -I 'zstd -T36 -15' --checkpoint=.1024 --totals -c -f "$@" + tar -I 'zstd -T36 -15' --checkpoint=.1024 --totals --totals=SIGUSR1 -c -f "$@" } +alias tar-kill-progress="watch -n 60 killall tar -SIGUSR1" # Unix permissions reset (Dangerous! This will make executable files no longer executable) reset-permissions-dangerous() {