work in progress

This commit is contained in:
Eric Lay 2020-06-22 17:33:55 -05:00
parent 1bfac3f726
commit 99672061c3
1 changed files with 1 additions and 1 deletions

2
fpf
View File

@ -32,7 +32,7 @@ while getopts ":yh" option; do
echo -e "Syncing AUR package database..."
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 -Qqm | sort)) <(comm -12 <(sort /tmp/aur/packages) <(pacman -Qq | sort) | awk '{print $0" *"}') > /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
clear
;;