Upgrade the update alias to a function like done for desktops.
This commit is contained in:
parent
bdd7e7855b
commit
bb0bcc27c8
19
bashrc.sh
19
bashrc.sh
@ -48,13 +48,30 @@ alias mv="mv -v"
|
|||||||
alias rm="echo 'Move to ~/storage/shared/TRASH/ instead!'"
|
alias rm="echo 'Move to ~/storage/shared/TRASH/ instead!'"
|
||||||
|
|
||||||
# Quickies
|
# Quickies
|
||||||
alias update="pkg update && pkg upgrade"
|
alias upgrade="update"
|
||||||
alias bye="exit"
|
alias bye="exit"
|
||||||
alias goodbye="update -y && bye"
|
alias goodbye="update -y && bye"
|
||||||
alias install="pkg install"
|
alias install="pkg install"
|
||||||
|
|
||||||
## Functions ##
|
## 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.
|
# Optimize the bitrate and audio levels for an edited video.
|
||||||
function process-video-usage {
|
function process-video-usage {
|
||||||
echo "USAGE: process-video oldFile newFile [videoBitrate] [audioBitrate] [sizeRating] [numPasses] [forceBitrate]"
|
echo "USAGE: process-video oldFile newFile [videoBitrate] [audioBitrate] [sizeRating] [numPasses] [forceBitrate]"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user