add pipx apps and terrahour
This commit is contained in:
@@ -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=("$@")
|
||||
|
||||
Reference in New Issue
Block a user