Alter the update function and move / edit some of its aliases.

This commit is contained in:
2025-09-16 13:55:51 -07:00
parent 6220e70480
commit 49d9c95c85

View File

@@ -81,10 +81,10 @@ alias mv="mv -v"
alias rm="echo 'Move to ~/storage/shared/TRASH/ instead!'"
# Quickies
alias upgrade="update"
alias bye="exit"
alias goodbye="update -y && bye"
alias install="pkg install"
alias uninstall="pkg uninstall"
alias remove="uninstall"
alias scan="nmap -A -p- --script=vuln"
## Functions ##
@@ -92,20 +92,22 @@ alias scan="nmap -A -p- --script=vuln"
function update {
params="$1"
# TBD/TODO: Change this to pkg commmands, as recommended by Termux.
echo "******* Apt *******" &&
echo "******* Apt / Pkg *******" &&
echo "*** Update Cache ***" &&
apt update &&
echo -e "\n*** Auto Remove ***" &&
apt autoremove $params &&
echo -e "\n*** Clean ***" &&
apt clean $params &&
pkg clean $params &&
echo -e "Cleaned!\n\n*** Fix Broken/Missing ***" &&
apt --fix-broken --fix-missing install &&
echo -e "\n*** Upgrade ***" &&
apt dist-upgrade --allow-downgrades --fix-broken --fix-missing $params &&
#apt dist-upgrade --allow-downgrades --fix-broken --fix-missing $params &&
pkg upgrade
echo -e "\n******* Mission Complete!! *******"
}
alias upgrade="update"
alias goodbye="update -y && bye"
# Optimize the bitrate and audio levels for an edited video.
function process-video-usage {