-
Notifications
You must be signed in to change notification settings - Fork 1
/
.bpac.bsh
39 lines (34 loc) · 1.6 KB
/
.bpac.bsh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
command -v yay >/dev/null 2>&1 \
&& alias y='yay' \
&& alias yu='yay -Syu' \
&& alias yud='yay -Syu --devel' \
&& alias ys='yay -Ss' \
&& alias yr='yay -R' \
&& alias yc='yay -Sc' \
&& alias yrc='yay -Rns'
command -v pacui >/dev/null 2>&1 && alias p='pacui'
command -v pacmatic >/dev/null 2>&1 && alias pm='sudo pacmatic' || alias pm='sudo pacman'
command -v pacmatic >/dev/null 2>&1 && alias pmr='sudo pacmatic -R' || alias pmr='sudo pacman -R'
command -v pacmatic >/dev/null 2>&1 && alias pmc='sudo pacmatic -Sc' || alias pmc='sudo pacman -Sc'
command -v pacmatic >/dev/null 2>&1 && alias pmrc='sudo pacmatic -Rns' || alias pmrc='sudo pacman -Rns'
command -v pacmatic >/dev/null 2>&1 && alias pmu='sudo pacmatic -Syu' || alias pmu='sudo pacman -Syu'
command -v pacman >/dev/null 2>&1 \
&& alias pms='pacman -Ss' \
&& alias pmls='pacman -Qs' \
&& alias pml='pacman -Ql' \
&& alias pmo='pacman -Qtd'
command -v pacdiff >/dev/null 2>&1 && command -v vimdiff >/dev/null 2>&1 && export DIFFPROG=vimdiff
command -v makepkg >/dev/null 2>&1 \
&& alias mk='makepkg' \
&& alias mks='makepkg -s' \
&& alias mki='makepkg -is'
bin () { pacman -Ql $* | grep $GPARAM bin/ | awk '{print $2}'; } # Binaries from package
#command -v pkgfile >/dev/null 2>&1 && bin () { pkgfile -l $* | grep $GPARAM bin/; }
owns () { pacman -Qo $(which $*); } # Ownership of binary
command -v paru >/dev/null 2>&1 \
&& alias p='paru' \
&& alias pu='paru -Syu' \
&& alias pas='paru -Ss' \
&& alias pr='paru -R' \
&& alias pc='paru -Sc' \
&& alias prc='paru -Rns'