Alter the update
function and move / edit some of its aliases.
This commit is contained in:
14
bashrc.sh
14
bashrc.sh
@@ -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 {
|
||||
|
Reference in New Issue
Block a user