diff --git a/README.md b/README.md index ac268bd..52e56af 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ # fuzzy-pkg-finder -**Simple cli command for using fzf to search for packages.** -For use with Pacman or Yay package managers only. \ No newline at end of file +**Simple cli command for using fzf to search and install packages.**\ +Performs live search by package name and presents full package information.\ +*For use with Pacman or Yay package managers only.* \ No newline at end of file diff --git a/pacfzf b/pacfzf new file mode 100755 index 0000000..594b484 --- /dev/null +++ b/pacfzf @@ -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 \ No newline at end of file diff --git a/yayfzf b/yayfzf new file mode 100755 index 0000000..7da03d5 --- /dev/null +++ b/yayfzf @@ -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