add pipx apps and terrahour

This commit is contained in:
2026-10-26 11:22:03 -06:00
parent 4593082c4a
commit a7310f4811
5 changed files with 40 additions and 1 deletions
+14
View File
@@ -27,6 +27,20 @@ install_packages() {
fi
}
# Function to install pipx applications if not already installed
install_pipx_apps() {
local installed app status=0
installed="$(pipx list --short 2> /dev/null | cut -d' ' -f1)"
for app in "$@"; do
if ! grep -qx "$app" <<< "$installed"; then
echo "Installing $app with pipx..."
pipx install "$app" || status=1
fi
done
return $status
}
# Function to remove pacman/AUR packages if installed
remove_packages() {
local packages=("$@")