From c6c93824b195dedf239233b86520200c68019111 Mon Sep 17 00:00:00 2001 From: Eric Lay Date: Tue, 23 Jun 2020 16:54:00 -0500 Subject: [PATCH] aesthetic work --- PKGBUILD | 2 +- fpf | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/PKGBUILD b/PKGBUILD index 900c63b..c9846b8 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,6 +1,6 @@ # Maintainer: Eric Lay pkgname=fuzzy-pkg-finder -pkgver=0.7 +pkgver=0.8 pkgrel=1 pkgdesc="Simple cli command for using fzf to search and install packages" arch=(any) diff --git a/fpf b/fpf index f11ee6e..7a6822e 100644 --- a/fpf +++ b/fpf @@ -21,7 +21,7 @@ Help() { Mrepo() { echo "Setting things up..." sort <(comm -23 <(pacman -Slq | sort) <(pacman -Qq | sort)) <(comm -12 <(pacman -Slq | sort) <(pacman -Qq | sort) | awk '{print $0" *"}') > /tmp/packages - cat /tmp/packages |fzf -e -m --preview 'cat <(pacman -Si {1}) <(pacman -Fl {1} | awk "{print \$2}")' --layout=reverse --prompt='Select packages to install (use TAB to toggle selection) > ' | xargs -ro sudo pacman -S + cat /tmp/packages |fzf -e -m --preview 'cat <(pacman -Si {1}) <(pacman -Fl {1} | awk "{print \$2}")' --preview-window=wrap --layout=reverse --marker='>>' --header="Select packages to install (use TAB to toggle selection)" --info=hidden | xargs -ro sudo pacman -S } ### AUR Repo @@ -30,7 +30,7 @@ Arepo() { wget -P /tmp/aur/ https://aur.archlinux.org/packages.gz >/dev/null 2>&1 && gunzip -f /tmp/aur/packages.gz echo "$(tail -n +2 /tmp/aur/packages)" > /tmp/aur/packages sort <(comm -23 <(sort /tmp/aur/packages) <(pacman -Qq | sort)) <(comm -12 <(sort /tmp/aur/packages) <(pacman -Qq | sort) | awk '{print $0" *"}') > /tmp/aur_packages - cat /tmp/aur_packages | fzf -e -m --preview 'cat <(yay -Si {1}) <(yay -Fl {1} | awk "{print \$2}")' --layout=reverse --prompt='Select packages to install (use TAB to toggle selection) > ' | xargs -ro yay -S + cat /tmp/aur_packages | fzf -e -m --preview 'cat <(yay -Si {1}) <(yay -Fl {1} | awk "{print \$2}")' --preview-window=wrap --layout=reverse --marker='>>' --header="Select packages to install (use TAB to toggle selection)" --info=hidden | xargs -ro yay -S } ### MAIN