From 7cea8475fbf8e1ba9e665e7740e35182c57bfb6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juanra=20N=C3=BA=C3=B1ez?= Date: Wed, 8 Nov 2017 17:03:11 -0500 Subject: [PATCH] Added aliases for listing packages (#6374) Added 'agli' to list all installed packages. Added 'aglu' to list available updates only. --- plugins/ubuntu/ubuntu.plugin.zsh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/plugins/ubuntu/ubuntu.plugin.zsh b/plugins/ubuntu/ubuntu.plugin.zsh index ba7143687..082481466 100644 --- a/plugins/ubuntu/ubuntu.plugin.zsh +++ b/plugins/ubuntu/ubuntu.plugin.zsh @@ -21,7 +21,16 @@ compdef _ags ags='apt-get source' alias acp='apt-cache policy' # app compdef _acp acp='apt-cache policy' +#List all installed packages +alias agli='apt list --installed' +compdef _agli agli='apt list --installed' + # 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' compdef _afu afu='sudo apt-file update'