Some aliases moved to utils

This commit is contained in:
2025-12-08 17:04:11 +08:00
parent 9ca95f6353
commit 94df267831
21 changed files with 99 additions and 62 deletions

30
utils/.local/bin/upgrade Executable file
View File

@@ -0,0 +1,30 @@
#!/usr/bin/env bash
set -eo pipefail
is apt >/dev/null && {
echo
echo "==========================="
echo "Upgarding apt packages..."
echo "==========================="
echo
sudo apt update
sudo apt upgrade -y
}
is snap >/dev/null && {
echo
echo "==========================="
echo "Upgarding snap packages..."
echo "==========================="
echo
sudo snap refresh
}
is flatpak >/dev/null && {
echo
echo "==========================="
echo "Upgarding flatpak packages..."
echo "==========================="
echo
sudo flatpak update -y
}