Replace coterie of individual Elephant packages with the single elephant-all package

Closes https://github.com/omacom-io/omarchy-pkgs/issues/12
This commit is contained in:
David Heinemeier Hansson
2026-04-30 12:51:40 +02:00
parent b8a4d0b2ef
commit c5784432e0
+14
View File
@@ -0,0 +1,14 @@
echo "Replace coterie of individual Elephant packages with the single elephant-all package"
if omarchy-pkg-present omarchy-walker; then
sudo pacman -R --noconfirm omarchy-walker
fi
mapfile -t elephant_packages < <(pacman -Qq | grep '^elephant-' | grep -v '^elephant-all$' || true)
if (( ${#elephant_packages[@]} > 0 )); then
sudo pacman -Rns --noconfirm "${elephant_packages[@]}"
fi
omarchy-pkg-add elephant-all
omarchy-restart-walker