zsh/.aliases/command-specific/apt-get

22 lines
628 B
Plaintext

## Various update aliases
### apt
alias ai="noglob sudo apt-get install"
alias aup="sudo apt-get update; sudo apt-get upgrade"
alias adup="sudo apt-get dist-upgrade"
alias aclean="sudo apt-get autoremove; sudo apt-get autoclean"
alias apt="noglob apt"
### mr
alias mup="mr -mj update"
alias cmup="mup 2>&1|sed -ur 's/mr update: \/(.*)/'\"$(tput bold)\1$(tput sgr0)\"'/g
/mr update: command failed/c'\"$(tput setf 4)mr update: command failed$(tput sgr0)\"'
s/\/?home\/adam/~/g
/Already up-to-date/d
/Tree is up to date/d
/Updating '\''\.'\'':/d
/At revision/d
/^$/d'"
### general
alias up="(aup;aclean;cmup) | tee /tmp/up.log"