diff options
author | Robby Russell <robby@planetargon.com> | 2015-08-30 21:51:50 -0700 |
---|---|---|
committer | Robby Russell <robby@planetargon.com> | 2015-08-30 21:51:50 -0700 |
commit | da6ece4ec99cd3caaadb260aa2c502ccf3248a42 (patch) | |
tree | e85f5997dee07452418115d50d10b3351f53cc47 | |
parent | eb12ec1dc8cc92e80236149fa8c43c97e64b7f3a (diff) | |
parent | 2e92ff8ae5e6ddbac5040bb235518a4337aeb983 (diff) | |
download | zsh-da6ece4ec99cd3caaadb260aa2c502ccf3248a42.tar.gz zsh-da6ece4ec99cd3caaadb260aa2c502ccf3248a42.tar.bz2 zsh-da6ece4ec99cd3caaadb260aa2c502ccf3248a42.zip |
Merge pull request #4117 from nextgenthemes/patch-1
Adds agar = apt-get autoremove
-rw-r--r-- | plugins/ubuntu/ubuntu.plugin.zsh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/ubuntu/ubuntu.plugin.zsh b/plugins/ubuntu/ubuntu.plugin.zsh index a1a5016c7..f08853643 100644 --- a/plugins/ubuntu/ubuntu.plugin.zsh +++ b/plugins/ubuntu/ubuntu.plugin.zsh @@ -29,6 +29,7 @@ compdef _ppap ppap='sudo ppa-purge' alias ag='sudo apt-get' # age - but without sudo alias aga='sudo apt-get autoclean' # aac +alias agar='sudo apt-get autoremove' alias agb='sudo apt-get build-dep' # abd alias agc='sudo apt-get clean' # adc alias agd='sudo apt-get dselect-upgrade' # ads @@ -43,6 +44,7 @@ alias agar='sudo apt-get autoremove' compdef _ag ag='sudo apt-get' compdef _aga aga='sudo apt-get autoclean' +compdef _agar agar='sudo apt-get autoremove' compdef _agb agb='sudo apt-get build-dep' compdef _agc agc='sudo apt-get clean' compdef _agd agd='sudo apt-get dselect-upgrade' @@ -68,7 +70,7 @@ alias mydeb='time dpkg-buildpackage -rfakeroot -us -uc' # apt-add-repository with automatic install/upgrade of the desired package # Usage: aar ppa:xxxxxx/xxxxxx [packagename] -# If packagename is not given as 2nd arument the function will ask for it and guess the defaupt by taking +# If packagename is not given as 2nd argument the function will ask for it and guess the default by taking # the part after the / from the ppa name wich is sometimes the right name for the package you want to install aar() { if [ -n "$2" ]; then |