Added aliases for listing packages (#6374)

Added 'agli' to list all installed packages.
Added 'aglu' to list available updates only.
This commit is contained in:
Juanra Núñez 2017-11-08 17:03:11 -05:00 committed by Robby Russell
parent 2c87f85ad5
commit 7cea8475fb

View file

@ -21,7 +21,16 @@ compdef _ags ags='apt-get source'
alias acp='apt-cache policy' # app alias acp='apt-cache policy' # app
compdef _acp acp='apt-cache policy' compdef _acp acp='apt-cache policy'
#List all installed packages
alias agli='apt list --installed'
compdef _agli agli='apt list --installed'
# superuser operations ###################################################### # superuser operations ######################################################
# List available updates only
alias aglu='sudo apt-get -u upgrade --assume-no'
compdef _aglu aglu='sudo apt-get -u upgrade --assume-no'
alias afu='sudo apt-file update' alias afu='sudo apt-file update'
compdef _afu afu='sudo apt-file update' compdef _afu afu='sudo apt-file update'