From f0a386b8ef3a260cba9a54f24cd9f6ad4b042121 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juanra=20N=C3=BA=C3=B1ez?= Date: Thu, 26 Oct 2017 12:40:07 -0500 Subject: [PATCH] Added aliases for listing packages 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 60ff0457f..a6ebdcb65 100644 --- a/plugins/ubuntu/ubuntu.plugin.zsh +++ b/plugins/ubuntu/ubuntu.plugin.zsh @@ -20,7 +20,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'