diff --git a/bashrc.sh b/bashrc.sh index 9c822e3..42b2fc0 100644 --- a/bashrc.sh +++ b/bashrc.sh @@ -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]"