mirror of
https://github.com/arthur-pbty/arthur-os.git
synced 2026-08-01 20:28:16 +02:00
* Add omarchy CLI * Remove outdated or internal * Add bash completions for command * Add omarchy command documentation * Add missing docs * Correct to what's now right * Fix tests --------- Co-authored-by: David Heinemeier Hansson <david@hey.com>
14 lines
311 B
Bash
Executable File
14 lines
311 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# omarchy:summary=Remove orphaned system packages after updates
|
|
# omarchy:requires-sudo=true
|
|
|
|
orphans=$(pacman -Qtdq || true)
|
|
if [[ -n $orphans ]]; then
|
|
echo -e "\e[32m\nRemove orphan system packages\e[0m"
|
|
for pkg in $orphans; do
|
|
sudo pacman -Rs --noconfirm "$pkg" || true
|
|
done
|
|
echo
|
|
fi
|