added scripts/updated readme

This commit is contained in:
Eric Lay 2020-06-11 15:26:36 -05:00
parent 117da9b9bf
commit 3108cb172d
3 changed files with 8 additions and 2 deletions

View File

@ -1,4 +1,5 @@
# fuzzy-pkg-finder # fuzzy-pkg-finder
**Simple cli command for using fzf to search for packages.** **Simple cli command for using fzf to search and install packages.**\
For use with Pacman or Yay package managers only. Performs live search by package name and presents full package information.\
*For use with Pacman or Yay package managers only.*

3
pacfzf Executable file
View File

@ -0,0 +1,3 @@
#!/bin/bash
pacman -Sl | awk '{print $2($4=="" ? "" : " *")}'| fzf -e -m --preview 'cat <(pacman -Si {1}) <(pacman -Fl {1} | awk "{print \$2}")' --layout=reverse | xargs -ro -n1 sudo pacman -S

2
yayfzf Executable file
View File

@ -0,0 +1,2 @@
#!/bin/bash
yay -Sl | awk '{print $2($4=="" ? "" : " *")}'| fzf -e -m --preview 'cat <(yay -Si {1}) <(yay -Fl {1} | awk "{print \$2}")' --layout=reverse | xargs -ro -n1 yay -S