mirror of
https://git.disroot.org/FollieHiyuki/dotfiles.git
synced 2024-11-25 00:38:23 -05:00
Simplify the fzf script for yay
This commit is contained in:
parent
9a3dae27c5
commit
1ba97b4a54
@ -1,3 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
yay -Slq | fzf --multi --preview 'yay -Si {1}' | xargs -ro yay -S
|
|
@ -1,3 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
yay -Qq | fzf --multi --preview 'cat <(yay -Si {1}) <(yay -Fl {1} | awk "{print \$2}")' | xargs -ro yay -Rns
|
|
4
home/.local/bin/fzf/fzxbps
Executable file
4
home/.local/bin/fzf/fzxbps
Executable file
@ -0,0 +1,4 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# Query installed packages. For installing one use `fuzzypkg`
|
||||||
|
xbps-query -s "*" | awk '{print $2}' | fzf --multi --preview 'xbps-query -S {}'
|
18
home/.local/bin/fzf/fzyay
Executable file
18
home/.local/bin/fzf/fzyay
Executable file
@ -0,0 +1,18 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
if [ -z "$1" ]
|
||||||
|
then
|
||||||
|
echo "Usage:
|
||||||
|
-i : install a package
|
||||||
|
-u : uninstall a package"
|
||||||
|
else
|
||||||
|
if [ "$1" = "-i" ]
|
||||||
|
then
|
||||||
|
yay -Slq | fzf --multi --preview 'yay -Si {1}' | xargs -ro yay -S
|
||||||
|
elif [ "$1" = "-u" ]
|
||||||
|
then
|
||||||
|
yay -Qq | fzf --multi --preview 'cat <(yay -Si {1}) <(yay -Fl {1} | awk "{print \$2}")' | xargs -ro yay -Rns
|
||||||
|
else
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
fi
|
Loading…
Reference in New Issue
Block a user