aesthetic work
This commit is contained in:
parent
23f79776eb
commit
c6c93824b1
2
PKGBUILD
2
PKGBUILD
|
@ -1,6 +1,6 @@
|
|||
# Maintainer: Eric Lay <ericlaytm@gmail.com>
|
||||
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)
|
||||
|
|
4
fpf
4
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
|
||||
|
|
Loading…
Reference in New Issue