From d78baa36d65b794bc119d0f96998b66ead68d13c Mon Sep 17 00:00:00 2001 From: xeruf <27jf@pm.me> Date: Sun, 12 Mar 2023 22:35:11 +0100 Subject: [PATCH] bin: add tiny compress script --- .local/bin/scripts/clean | 6 ++++-- .local/bin/scripts/compress | 3 +++ 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100755 .local/bin/scripts/compress diff --git a/.local/bin/scripts/clean b/.local/bin/scripts/clean index 7a6a997..dc8d2ad 100755 --- a/.local/bin/scripts/clean +++ b/.local/bin/scripts/clean @@ -4,8 +4,10 @@ typeset -A _clean_map _clean_map=([h]=$XDG_CACHE_HOME [t]=/var/tmp [l]=/var/log [v]=/var/cache) -_clean_home=(.ant .autopsy .bundle .cache .cargo .cpanm .docker .electron .electron-gyp .gradle .gradle-kotlin-dsl .hex .java .kscript .konan .m2 .mix .nix-defexpr .node-gyp .node_modules .npm .pnpm-store .nv .openjfx .parallel .stack .surf .texlive .yarn luametatex-cache - .lesshst .python_history .rubberband.wisdom.d .yarnrc) +_clean_home=(.ant .autopsy .bundle .cache .cargo .cpanm .docker .electron .electron-gyp .gradle .gradle-kotlin-dsl .hex .java .kscript .konan .m2 .mix .nix-defexpr .node-gyp .nv .openjfx .parallel .stack .surf .texlive + .yarn .node_modules .npm .pnpm-store + luametatex-cache luatex-cache + .lesshst .python_history .rubberband.wisdom.d .yarnrc) [[ $1 =~ "." ]] && local=pwd [[ $1 =~ "i" ]] && i=-i diff --git a/.local/bin/scripts/compress b/.local/bin/scripts/compress new file mode 100755 index 0000000..3e13290 --- /dev/null +++ b/.local/bin/scripts/compress @@ -0,0 +1,3 @@ +#!/bin/sh +# Just compress the given directory! +7z a "$1" "$@"