summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/archlinux/README.md35
-rw-r--r--plugins/archlinux/archlinux.plugin.zsh29
2 files changed, 63 insertions, 1 deletions
diff --git a/plugins/archlinux/README.md b/plugins/archlinux/README.md
index a4f191a5f..8dd191760 100644
--- a/plugins/archlinux/README.md
+++ b/plugins/archlinux/README.md
@@ -48,6 +48,38 @@ upgrades were available. Use `pacman -Que` instead.
### AUR helpers
+#### Aura
+
+| Alias | Command | Description |
+|---------|-------------------------------------------------|-------------------------------------------------------------------------|
+| auin | `sudo aura -S` | Install packages from the repositories |
+| aurin | `sudo aura -A` | Install packages from the repositories |
+| auins | `sudo aura -U` | Install a package from a local file |
+| auinsd | `sudo aura -S --asdeps` | Install packages as dependencies of another package (repositories only) |
+| aurinsd | `sudo aura -A --asdeps` | Install packages as dependencies of another package (AUR only) |
+| auloc | `aura -Qi` | Display information about a package in the local database |
+| aulocs | `aura -Qs` | Search for packages in the local database |
+| auls | `aura -Qql` | List all files owned by a given package |
+| aulst | `aura -Qe` | List installed packages including from AUR (tagged as "local") |
+| aumir | `sudo aura -Syy` | Force refresh of all package lists after updating mirrorlist |
+| aurph | `sudo aura -Oj` | Remove orphans using aura |
+| auown | `aura -Qqo` | Search for packages that own the specified file(s) |
+| aure | `sudo aura -R` | Remove packages, keeping its settings and dependencies |
+| aurem | `sudo aura -Rns` | Remove packages, including its settings and unneeded dependencies |
+| aurep | `aura -Si` | Display information about a package in the repositories |
+| aurrep | `aura -Ai` | Display information about a package from AUR |
+| aureps | `aura -As --both` | Search for packages in the repositories and AUR |
+| auras | `aura -As --both` | Same as above |
+| auupd | `sudo aura -Sy && <abs/aur refresh>`[¹](#f1) | Update and refresh local package, ABS and AUR databases |
+| auupg | `sudo sh -c "aura -Syu && aura -Au"` | Sync with repositories before upgrading all packages (from AUR too) |
+| ausu | `sudo sh -c "aura -Syu --no-confirm && aura -Au --no-confirm"` | Same as `auupg`, but without confirmation |
+| upgrade[³](#f3) | `sudo aura -Syu` | Sync with repositories before upgrading packages |
+
+| Function | Description |
+|-----------------|---------------------------------------------------------------------|
+| auownloc _file_ | Display information about a package that owns the specified file(s) |
+| auownls _file_ | List all files owned by a package that owns the specified file(s) |
+
#### Pacaur
| Alias | Command | Description |
@@ -152,7 +184,8 @@ whether the package manager is installed, checked in the following order:
2. `yaourt`
3. `trizen`
4. `pacaur`
-5. `pacman`
+5. `aura`
+6. `pacman`
## Contributors
diff --git a/plugins/archlinux/archlinux.plugin.zsh b/plugins/archlinux/archlinux.plugin.zsh
index d53761077..4c553d271 100644
--- a/plugins/archlinux/archlinux.plugin.zsh
+++ b/plugins/archlinux/archlinux.plugin.zsh
@@ -91,6 +91,35 @@ fi
# AUR helpers #
#######################################
+if (( $+commands[aura] )); then
+ alias auin='sudo aura -S'
+ alias aurin='sudo aura -A'
+ alias auins='sudo aura -U'
+ alias auinsd='sudo aura -S --asdeps'
+ alias aurinsd='sudo aura -A --asdeps'
+ alias auloc='aura -Qi'
+ alias aulocs='aura -Qs'
+ alias aulst='aura -Qe'
+ alias aumir='sudo aura -Syy'
+ alias aurph='sudo aura -Oj'
+ alias aure='sudo aura -R'
+ alias aurem='sudo aura -Rns'
+ alias aurep='aura -Si'
+ alias aurrep='aura -Ai'
+ alias aureps='aura -As --both'
+ alias auras='aura -As --both'
+ alias auupd="sudo aura -Sy$abs_aur"
+ alias auupg='sudo sh -c "aura -Syu && aura -Au"'
+ alias ausu='sudo sh -c "aura -Syu --no-confirm && aura -Au --no-confirm"'
+ alias upgrade='sudo aura -Syu'
+
+ # extra bonus specially for aura
+ alias auown="aura -Qqo"
+ alias auls="aura -Qql"
+ function auownloc() { aura -Qi $(aura -Qqo $@); }
+ function auownls () { aura -Qql $(aura -Qqo $@); }
+fi
+
if (( $+commands[pacaur] )); then
alias paupg='pacaur -Syu'
alias pasu='pacaur -Syu --noconfirm'