From 8989c31d7a73320284d47a4014c02f1ad1df17a6 Mon Sep 17 00:00:00 2001 From: Phantop Date: Sun, 25 Jul 2021 00:19:15 -0400 Subject: [PATCH] Better compress, clean, gitconfig; ccache --- .config/fish/config.fish | 2 +- .config/git/config | 2 ++ .local/bin/aliases | 2 +- .local/bin/clean | 4 +++- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.config/fish/config.fish b/.config/fish/config.fish index 4d41d20..975e9f7 100644 --- a/.config/fish/config.fish +++ b/.config/fish/config.fish @@ -2,6 +2,6 @@ set -x EDITOR nvim set -x PAGER most set -x MANPAGER "nvim -c 'set ft=man' -" -fish_add_path -g ~/.local/bin +fish_add_path -g ~/.local/bin /usr/lib64/ccache/bin starship init fish | source source /usr/share/autojump/autojump.fish diff --git a/.config/git/config b/.config/git/config index 128d22d..79c9149 100644 --- a/.config/git/config +++ b/.config/git/config @@ -38,9 +38,11 @@ b = branch c = commit ca = commit --amend + caa = commit --amend -a ch = checkout cl = gc --aggressive --prune=now g = clone + gr = clone --recursive l = log open = browse p = pull diff --git a/.local/bin/aliases b/.local/bin/aliases index 18d87e4..dce0195 100755 --- a/.local/bin/aliases +++ b/.local/bin/aliases @@ -32,7 +32,7 @@ a v vi a vi nvim a ydl 'youtube-dl -ciw --write-sub --write-auto-sub --embed-subs --sub-lang=en -o "%(title)s.%(ext)s"' -a compress '7z a -t7z -m0=lzma -mx=9 -mfb=64 -md=32m -ms=on (realpath $argv).7z' +a compress '7z a -m0=flzma2 -mx9 -mmt=8 -mfb=273 -md=256m -ms=on (realpath $argv[1]).7z' a dwarf 'mkdwarfs -i . -o $PWD.dwarfs' a redwarf 'mkdwarfs -o redwarf.dwarfs --recompress -i' a squash 'mksquashfs . $PWD.squashfs -comp zstd -b 1M -Xcompression-level 22' diff --git a/.local/bin/clean b/.local/bin/clean index c11118d..2647472 100755 --- a/.local/bin/clean +++ b/.local/bin/clean @@ -8,8 +8,10 @@ fc-cache -f rm -r ~/.cache fish -c "j --purge" docker system prune -f +docker image prune -a sudo solbuild delete-cache -sudo rm -rf /var/lib/solbuild/packages /var/lib/solbuild/sources +sudo rm -rf /var/lib/solbuild +sudo solbuild init -p unstable-x86_64 sudo journalctl --vacuum-size=1K bleachbit -c `bleachbit -l|rg -v 'system.free_disk_space|transmission|system.memory|cookies'` sudo bleachbit -c `bleachbit -l|rg -v 'system.free_disk_space|system.memory'`