da6ece4ec99cd3caaadb260aa2c502ccf3248a42

Author
Robby Russell <robby@planetargon.com>
Committer
Robby Russell <robby@planetargon.com>
Date

Message

Merge pull request #4117 from nextgenthemes/patch-1

Adds agar = apt-get autoremove

Diff

 1diff --git a/plugins/ubuntu/ubuntu.plugin.zsh b/plugins/ubuntu/ubuntu.plugin.zsh
 2index a1a5016c722c6b2ba6bba6780deff85d206abcc4..f08853643b514df132496a90777a033cf1924d6b 100644
 3--- a/plugins/ubuntu/ubuntu.plugin.zsh
 4+++ b/plugins/ubuntu/ubuntu.plugin.zsh
 5@@ -29,6 +29,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@@ -43,6 +44,7 @@ alias agar='sudo apt-get autoremove'
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@@ -68,7 +70,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