diff options
author | Juanra Núñez <juanra@gmail.com> | 2017-11-08 17:03:11 -0500 |
---|---|---|
committer | Robby Russell <robby@planetargon.com> | 2017-11-08 14:03:11 -0800 |
commit | 7cea8475fbf8e1ba9e665e7740e35182c57bfb6f (patch) | |
tree | 58b54269edd5bf84f3d582a2a4f0555e2ca5cb09 /plugins/ubuntu | |
parent | 2c87f85ad56663c322f6a72f4ef6ad70b74c8aad (diff) | |
download | zsh-7cea8475fbf8e1ba9e665e7740e35182c57bfb6f.tar.gz zsh-7cea8475fbf8e1ba9e665e7740e35182c57bfb6f.tar.bz2 zsh-7cea8475fbf8e1ba9e665e7740e35182c57bfb6f.zip |
Added aliases for listing packages (#6374)
Added 'agli' to list all installed packages.
Added 'aglu' to list available updates only.
Diffstat (limited to 'plugins/ubuntu')
-rw-r--r-- | plugins/ubuntu/ubuntu.plugin.zsh | 9 |
1 files changed, 9 insertions, 0 deletions
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' |