From 3827ee284000cf72480b1f6bd749019866cbbfca Mon Sep 17 00:00:00 2001 From: Mylloon Date: Sun, 6 Nov 2022 15:15:48 +0100 Subject: [PATCH] add pacman-clean abbr --- arch.sh | 1 + arch_wsl.sh | 1 + 2 files changed, 2 insertions(+) diff --git a/arch.sh b/arch.sh index 82c2295..d34e4ac 100644 --- a/arch.sh +++ b/arch.sh @@ -110,6 +110,7 @@ then fish -c "abbr ocml 'clear; ocamlopt *.ml && rm *.o *.cmx *.out; ocamlbuild -no-hygiene test.byte; ./test.byte; rm test.byte'" fish -c "abbr opamupdate 'opam update && opam upgrade -y'" fish -c "abbr yay-rebuild 'checkrebuild | awk \'{print \$2}\' | xargs -r yay -S --rebuildtree --noconfirm'" + fish -c "abbr pacman-clean 'sudo pacman -Rsn \$(pacman -Qqtd)'" # Fish by default in terminal app profil=$(gsettings get org.gnome.Terminal.ProfilesList list) gsettings set org.gnome.Terminal.Legacy.Profile:/org/gnome/terminal/legacy/profiles:/:"${profil:2:-2}"/ use-custom-command true diff --git a/arch_wsl.sh b/arch_wsl.sh index 5aae0ed..ae41df7 100644 --- a/arch_wsl.sh +++ b/arch_wsl.sh @@ -134,6 +134,7 @@ then fish -c "abbr ocml 'clear; ocamlopt *.ml && rm *.o *.cmx *.out; ocamlbuild -no-hygiene test.byte; ./test.byte; rm test.byte'" fish -c "abbr opamupdate 'opam update && opam upgrade -y'" fish -c "abbr yay-rebuild 'checkrebuild | awk \'{print \$2}\' | xargs -r yay -S --rebuildtree --noconfirm'" + fish -c "abbr pacman-clean 'sudo pacman -Rsn \$(pacman -Qqtd)'" # === Micro configuration == git config --global core.editor "micro"