Upgrade the update alias to a function like done for desktops.

This commit is contained in:
Hyperling 2025-01-03 12:23:27 -07:00
parent bdd7e7855b
commit bb0bcc27c8

View File

@ -48,13 +48,30 @@ alias mv="mv -v"
alias rm="echo 'Move to ~/storage/shared/TRASH/ instead!'"
# Quickies
alias update="pkg update && pkg upgrade"
alias upgrade="update"
alias bye="exit"
alias goodbye="update -y && bye"
alias install="pkg install"
## Functions ##
function update {
params="$1"
echo "******* Apt *******" &&
echo "*** Update Cache ***" &&
apt update &&
echo -e "\n*** Auto Remove ***" &&
apt autoremove $params &&
echo -e "\n*** Clean ***" &&
apt clean $params &&
echo -e "Cleaned!\n\n*** Fix Broken/Missing ***" &&
apt --fix-broken --fix-missing install &&
echo -e "\n*** Upgrade ***" &&
apt dist-upgrade $params &&
echo -e "\n******* Mission Complete!! *******"
}
# Optimize the bitrate and audio levels for an edited video.
function process-video-usage {
echo "USAGE: process-video oldFile newFile [videoBitrate] [audioBitrate] [sizeRating] [numPasses] [forceBitrate]"