forked from prasanthrangan/hyprdots
-
Notifications
You must be signed in to change notification settings - Fork 0
/
04_yay.sh
39 lines (34 loc) · 2.77 KB
/
04_yay.sh
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
39
# ╒══════════════════════════════════════════════════════════╕
# │ │
# │ Update/Upgrade │
# │ │
# ╘══════════════════════════════════════════════════════════╛
alias yconfig="yay -Pg" # Print current config
alias yupgrade="yay -Sua" # Update only AUR pkgs
# Install
alias yinstall="yay -S" # Install pkgs from the repo using "YAY"
alias ylocal-install="yay -U" # Install pkgs from a local file usnig "YAY"
alias yinstall-deps="yay -S --asdeps" # Install pkgs as dependencies of another pkg using "YAY"
# ╒══════════════════════════════════════════════════════════╕
# │ │
# │ Info │
# │ │
# ╘══════════════════════════════════════════════════════════╛
alias ypkg-info="yay -Qi" # Query installed pkgs and their files
alias ypkg-list="yay -Ql" # List files in a pkg
alias ysearch-localdb="yay -Qs"
alias ylist-installed-pkgs-local="yay -Qe"
alias ydisplay-info-repo="yay -Si" # Display info about a pkg in the repo
# Using FZF to search YAY
yfind() {
yay -Sl | awk '{print $2($4=="" ? "" : " *")}' | fzf --multi --ansi --preview 'yay -Si {1}' --reverse --preview-window right:70% | xargs -ro yay -S
}
# ╒══════════════════════════════════════════════════════════╕
# │ │
# │ Clean Up │
# │ │
# ╘══════════════════════════════════════════════════════════╛
# Remove a pkg, keeps its settings & dependencies
alias yr="yay -Qq | fzf --multi --preview 'yay -Qi {1}' --preview-window right:70% | xargs -ro yay -R"
# Remove a pkg, including its settings & dependencies
alias yrs="yay -Qq | fzf --multi --preview 'yay -Qi {1}' --preview-window right:70% | xargs -ro yay -Rns"