various additions from sim laptop

This commit is contained in:
Alexander Gehrke 2025-05-08 13:55:52 +02:00 committed by Alexander Roso
parent 912a3282c5
commit 21e41141ef
13 changed files with 645 additions and 28 deletions

View file

@ -9,7 +9,18 @@ grep -iq 'ID_LIKE=debian' /etc/os-release || \
return
alias xq="apt-cache search"
alias xi="apt-get install"
alias xi="sudo apt-get install"
alias xowner="dpkg -S"
alias xfiles="dpkg -L"
alias sv="systemctl"
xupdate() {
sudo -v
echo "\e[1;32mUpdating package cache...\e[0m"
if sudo apt update 2>&1 | grep -q 'apt list --upgradable'; then
echo "\e[1;92mUpgrades available:\e[0m"
apt list --upgradable
echo "\e[1;92mRun upgrades?\e[0m"
read -q && sudo apt upgrade -y
fi
}