37b278cd034f8e995a274db92aab7f4a33c0e1d8

Author
Marc Cornellà <hello@mcornella.com>
Committer
Marc Cornellà <hello@mcornella.com>
Date

Message

chore(debian): document previous alias

Diff

 1diff --git a/plugins/debian/README.md b/plugins/debian/README.md
 2index 922d68cb3ba8c914e1776a2ce86c5fe5ad7f60b9..ac2eec84d5c85228ac1f1aae407d573906ca2d8a 100644
 3--- a/plugins/debian/README.md
 4+++ b/plugins/debian/README.md
 5@@ -44,6 +44,7 @@ Set `$apt_pref` and `$apt_upgr` to whatever command you want (before sourcing Oh
 6 | `ail`    | `sed -e 's/  */ /g' -e 's/ *//' \| cut -s -d ' ' -f 1 \| xargs sudo $apt_pref install` | Install all packages given on the command line while using only the first word of each line |
 7 | `ap`     | `sudo $apt_pref purge`                                                                 | Removes packages along with configuration files                                             |
 8 | `ar`     | `sudo $apt_pref remove`                                                                | Removes packages, keeps the configuration files                                             |
 9+| `aar`    | `sudo $apt_pref autoremove`                                                            | Removes packages installed automatically that are no longer needed                          |
10 | `ads`    | `sudo apt-get dselect-upgrade`                                                         | Installs packages from list and removes all not in the list                                 |
11 | `dia`    | `sudo dpkg -i ./*.deb`                                                                 | Install all .deb files in the current directory                                             |
12 | `di`     | `sudo dpkg -i`                                                                         | Install all .deb files in the current directory                                             |
13@@ -54,6 +55,7 @@ Set `$apt_pref` and `$apt_upgr` to whatever command you want (before sourcing Oh
14 | Alias | Command                                                   |
15 | ----- | --------------------------------------------------------- |
16 | `aac` | `su -ls "$apt_pref autoclean" root`                       |
17+| `aar` | `su -ls "$apt_pref autoremove" root`                      |
18 | `ac`  | `su -ls "$apt_pref clean" root`                           |
19 | `ad`  | `su -lc "$apt_pref update" root`                          |
20 | `adg` | `su -lc "$apt_pref update && aptitude $apt_upgr" root`    |
21diff --git a/plugins/debian/debian.plugin.zsh b/plugins/debian/debian.plugin.zsh
22index 1d202243607a1961d57f5a99c9a9c76554f00db2..5fa1270b8f57ca2e6d22bae3ea69c90a4f18c02c 100644
23--- a/plugins/debian/debian.plugin.zsh
24+++ b/plugins/debian/debian.plugin.zsh
25@@ -100,7 +100,7 @@ else
26         print "$cmd"
27         eval "$cmd"
28     }
29-    aar() {
30+    function aar() {
31         cmd="su -lc '$apt_pref -P autoremove $@' root"
32         print "$cmd"
33         eval "$cmd"