From 3108cb172d4bce40529961d3ce6002fdebc09568 Mon Sep 17 00:00:00 2001 From: Eric Lay Date: Thu, 11 Jun 2020 15:26:36 -0500 Subject: [PATCH] added scripts/updated readme --- README.md | 5 +++-- pacfzf | 3 +++ yayfzf | 2 ++ 3 files changed, 8 insertions(+), 2 deletions(-) create mode 100755 pacfzf create mode 100755 yayfzf 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