2e92ff8ae5e6ddbac5040bb235518a4337aeb983

Author
nextgenthemes <nextgenthemes@users.noreply.github.com>
Committer
nextgenthemes <nextgenthemes@users.noreply.github.com>
Date

Message

Adds agar = apt-get autoremove

Since #3902 lacks the auto-completion I made a PR for this as well.

Also fixes some typos.

Diff

 1diff --git a/plugins/ubuntu/ubuntu.plugin.zsh b/plugins/ubuntu/ubuntu.plugin.zsh
 2index 0211d33742577092cf8902b4e83cb0761d9d7433..85db3ce198df0d1274a6dda6095db449617ab951 100644
 3--- a/plugins/ubuntu/ubuntu.plugin.zsh
 4+++ b/plugins/ubuntu/ubuntu.plugin.zsh
 5@@ -28,6 +28,7 @@ compdef _ppap ppap='sudo ppa-purge'
 6 
 7 alias ag='sudo apt-get'            # age - but without sudo
 8 alias aga='sudo apt-get autoclean' # aac
 9+alias agar='sudo apt-get autoremove'
10 alias agb='sudo apt-get build-dep' # abd
11 alias agc='sudo apt-get clean'     # adc
12 alias agd='sudo apt-get dselect-upgrade' # ads
13@@ -41,6 +42,7 @@ alias aguu='sudo apt-get update && sudo apt-get upgrade'      #adg
14 
15 compdef _ag ag='sudo apt-get'
16 compdef _aga aga='sudo apt-get autoclean'
17+compdef _agar agar='sudo apt-get autoremove'
18 compdef _agb agb='sudo apt-get build-dep'
19 compdef _agc agc='sudo apt-get clean'
20 compdef _agd agd='sudo apt-get dselect-upgrade'
21@@ -65,7 +67,7 @@ alias mydeb='time dpkg-buildpackage -rfakeroot -us -uc'
22 
23 # apt-add-repository with automatic install/upgrade of the desired package
24 # Usage: aar ppa:xxxxxx/xxxxxx [packagename]
25-# If packagename is not given as 2nd arument the function will ask for it and guess the defaupt by taking
26+# If packagename is not given as 2nd argument the function will ask for it and guess the default by taking
27 # the part after the / from the ppa name wich is sometimes the right name for the package you want to install
28 aar() {
29 	if [ -n "$2" ]; then