Diff
1diff --git a/plugins/archlinux/README.md b/plugins/archlinux/README.md
2index e408db13dabd93959e4ff423619062588adc416a..a249ad62b4ac1b704f4da950bad9682dc3d8f44a 100644
3--- a/plugins/archlinux/README.md
4+++ b/plugins/archlinux/README.md
5@@ -2,6 +2,31 @@
6
7 ## Features
8
9+#### TRIZEN
10+
11+| Alias | Command | Description |
12+|---------|------------------------------------|---------------------------------------------------------------------|
13+| trconf | trizen -C | Fix all configuration files with vimdiff |
14+| trin | trizen -S | Install packages from the repositories |
15+| trins | trizen -U | Install a package from a local file |
16+| trinsd | trizen -S --asdeps | Install packages as dependencies of another package |
17+| trloc | trizen -Qi | Display information about a package in the local database |
18+| trlocs | trizen -Qs | Search for packages in the local database |
19+| trlst | trizen -Qe | List installed packages including from AUR (tagged as "local") |
20+| trmir | trizen -Syy | Force refresh of all package lists after updating mirrorlist |
21+| trorph | trizen -Qtd | Remove orphans using yaourt |
22+| trre | trizen -R | Remove packages, keeping its settings and dependencies |
23+| trrem | trizen -Rns | Remove packages, including its settings and unneeded dependencies |
24+| trrep | trizen -Si | Display information about a package in the repositories |
25+| trreps | trizen -Ss | Search for packages in the repositories |
26+| trupd | trizen -Sy && sudo abs && sudo aur | Update and refresh local package, ABS and AUR databases |
27+| trupd | trizen -Sy && sudo abs | Update and refresh the local package and ABS databases |
28+| trupd | trizen -Sy && sudo aur | Update and refresh the local package and AUR databases |
29+| trupd | trizen -Sy | Update and refresh the local package database |
30+| trupd | trizen -Syua | Sync with repositories before upgrading all packages (from AUR too) |
31+| trsu | trizen -Syua --no-confirm | Same as `trupg`, but without confirmation |
32+| upgrade | trizen -Syu | Sync with repositories before upgrading packages |
33+
34 #### YAOURT
35
36 | Alias | Command | Description |
37@@ -27,7 +52,7 @@
38 | yasu | yaourt -Syua --no-confirm | Same as `yaupg`, but without confirmation |
39 | upgrade | yaourt -Syu | Sync with repositories before upgrading packages |
40
41-### PACAUR
42+#### PACAUR
43
44 | Alias | Command | Description |
45 |---------|------------------------------------|---------------------------------------------------------------------|
46@@ -95,3 +120,4 @@
47 - ornicar - thibault.duplessis@gmail.com
48 - Juraj Fiala - doctorjellyface@riseup.net
49 - Majora320 (Moses Miller) - Majora320@gmail.com
50+- Ybalrid (Arthur Brainville) - ybalrid@ybalrid.info
51diff --git a/plugins/archlinux/archlinux.plugin.zsh b/plugins/archlinux/archlinux.plugin.zsh
52index 81e7a66885a18eadb3ed7377fef0b6d99a956eef..9172aaa704a9091532c7ef653e6c6fa0256bc477 100644
53--- a/plugins/archlinux/archlinux.plugin.zsh
54+++ b/plugins/archlinux/archlinux.plugin.zsh
55@@ -1,3 +1,32 @@
56+if (( $+commands[trizen] )); then
57+ alias trconf='trizen -C'
58+ alias trupg='trizen -Syua'
59+ alias trsu='trizen -Syua --noconfirm'
60+ alias trin='trizen -S'
61+ alias trins='trizen -U'
62+ alias trre='trizen -R'
63+ alias trrem='trizen -Rns'
64+ alias trrep='trizen -Si'
65+ alias trreps='trizen -Ss'
66+ alias trloc='trizen -Qi'
67+ alias trlocs='trizen -Qs'
68+ alias trlst='trizen -Qe'
69+ alias trorph='trizen -Qtd'
70+ alias trinsd='trizen -S --asdeps'
71+ alias trmir='trizen -Syy'
72+
73+
74+ if (( $+commands[abs] && $+commands[aur] )); then
75+ alias trupd='trizen -Sy && sudo abs && sudo aur'
76+ elif (( $+commands[abs] )); then
77+ alias trupd='trizen -Sy && sudo abs'
78+ elif (( $+commands[aur] )); then
79+ alias trupd='trizen -Sy && sudo aur'
80+ else
81+ alias trupd='trizen -Sy'
82+ fi
83+fi
84+
85 if (( $+commands[yaourt] )); then
86 alias yaconf='yaourt -C'
87 alias yaupg='yaourt -Syua'
88@@ -54,7 +83,11 @@ if (( $+commands[pacaur] )); then
89 fi
90 fi
91
92-if (( $+commands[pacaur] )); then
93+if (( $+commands[trizen] )); then
94+ upgrade() {
95+ trizen -Syu
96+ }
97+elif (( $+commands[pacaur] )); then
98 upgrade() {
99 pacaur -Syu
100 }