summaryrefslogtreecommitdiff
path: root/plugins/ubuntu
diff options
context:
space:
mode:
authorTuowen Zhao <ztuowen@gmail.com>2017-11-12 19:36:24 -0700
committerTuowen Zhao <ztuowen@gmail.com>2017-11-12 19:36:24 -0700
commit5e1ad5efbf59a40ef6dc6d404c6f403dff8ed436 (patch)
tree2c9ab05f372ad5da84662e18a4d7e258b75d3b17 /plugins/ubuntu
parent6bcf7764f8d8094695c7c04bb9532a0ede40ab37 (diff)
parent41eedd37005f6b3668fcebe2a5f5a26324753519 (diff)
downloadzsh-5e1ad5efbf59a40ef6dc6d404c6f403dff8ed436.tar.gz
zsh-5e1ad5efbf59a40ef6dc6d404c6f403dff8ed436.tar.bz2
zsh-5e1ad5efbf59a40ef6dc6d404c6f403dff8ed436.zip
Merge branch 'master' of https://github.com/robbyrussell/oh-my-zsh
Diffstat (limited to 'plugins/ubuntu')
-rw-r--r--plugins/ubuntu/readme.md2
-rw-r--r--plugins/ubuntu/ubuntu.plugin.zsh18
2 files changed, 15 insertions, 5 deletions
diff --git a/plugins/ubuntu/readme.md b/plugins/ubuntu/readme.md
index 5ad4bbcd2..99d62a6f7 100644
--- a/plugins/ubuntu/readme.md
+++ b/plugins/ubuntu/readme.md
@@ -16,6 +16,6 @@ afs = Apt-File Search --regexp - this has the regexp switch on without being rep
Then there are the 2 other 4 letter aliases for combined commands, that are straight forward and easy to remember.
aguu = sudo Apt-Get Update && sudo apt-get Upgrade - better then adg or not?
-agud = sudo Apt-Get Update && sudo apt-get Dist-upgrade
+agud = sudo Apt-Get Update && sudo apt-get full-upgrade
For a full list aliases and the functions just watch the plugins code https://github.com/robbyrussell/oh-my-zsh/blob/master/plugins/ubuntu/ubuntu.plugin.zsh, look at the comments if you want to switch from the debian plugin. Ubuntu, Mint and & co users will like the new aar function to install packages from ppas with a single command.
diff --git a/plugins/ubuntu/ubuntu.plugin.zsh b/plugins/ubuntu/ubuntu.plugin.zsh
index 60ff0457f..082481466 100644
--- a/plugins/ubuntu/ubuntu.plugin.zsh
+++ b/plugins/ubuntu/ubuntu.plugin.zsh
@@ -2,6 +2,7 @@
# https://github.com/AlexBio
# https://github.com/dbb
# https://github.com/Mappleconfusers
+# https://github.com/trinaldi
# Nicolas Jonas nextgenthemes.com
# https://github.com/loctauxphilippe
#
@@ -20,14 +21,23 @@ 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'
alias ppap='sudo ppa-purge'
compdef _ppap ppap='sudo ppa-purge'
-alias ag='sudo apt-get' # age - but without sudo
+alias apg='sudo apt-get' # age - but without sudo
alias aga='sudo apt-get autoclean' # aac
alias agb='sudo apt-get build-dep' # abd
alias agc='sudo apt-get clean' # adc
@@ -36,12 +46,12 @@ alias agi='sudo apt-get install' # ai
alias agp='sudo apt-get purge' # ap
alias agr='sudo apt-get remove' # ar
alias agu='sudo apt-get update' # ad
-alias agud='sudo apt-get update && sudo apt-get dist-upgrade' #adu
+alias agud='sudo apt-get update && sudo apt-get full-upgrade' #adu
alias agug='sudo apt-get upgrade' # ag
alias aguu='sudo apt-get update && sudo apt-get upgrade' #adg
alias agar='sudo apt-get autoremove'
-compdef _ag ag='sudo apt-get'
+compdef _ag apg='sudo apt-get'
compdef _aga aga='sudo apt-get autoclean'
compdef _agb agb='sudo apt-get build-dep'
compdef _agc agc='sudo apt-get clean'
@@ -50,7 +60,7 @@ compdef _agi agi='sudo apt-get install'
compdef _agp agp='sudo apt-get purge'
compdef _agr agr='sudo apt-get remove'
compdef _agu agu='sudo apt-get update'
-compdef _agud agud='sudo apt-get update && sudo apt-get dist-upgrade'
+compdef _agud agud='sudo apt-get update && sudo apt-get full-upgrade'
compdef _agug agug='sudo apt-get upgrade'
compdef _aguu aguu='sudo apt-get update && sudo apt-get upgrade'
compdef _agar agar='sudo apt-get autoremove'