summaryrefslogtreecommitdiff
path: root/bin/vpac
diff options
context:
space:
mode:
authorMarc Vertes <mvertes@free.fr>2020-10-18 12:35:30 +0200
committerMarc Vertes <mvertes@free.fr>2020-10-18 12:35:30 +0200
commitaa1f45e33a957098615eca24d0b1b26c03b0eb57 (patch)
treed614266a13ea0282397a76b1f780f426ab198d1f /bin/vpac
parenta896548d0a3c8adc98a9c76c09b3433724e196ab (diff)
update
Diffstat (limited to 'bin/vpac')
-rwxr-xr-xbin/vpac14
1 files changed, 14 insertions, 0 deletions
diff --git a/bin/vpac b/bin/vpac
new file mode 100755
index 0000000..3b8c25c
--- /dev/null
+++ b/bin/vpac
@@ -0,0 +1,14 @@
+#!/bin/sh
+# pacman + fzf
+#pacman -Slq | fzf --no-clear --multi --preview 'cat <(pacman -Si {1}) <(pacman -Fl {1} | awk "{print \$2}")' | xargs -ro sudo pacman -S
+
+# interactive select of package to remove
+remove() {
+ pacman -Qqe |
+ fzf --no-clear --multi --bind=left:preview-page-up --bind=right:preview-page-down \
+ --preview-window=right:66% \
+ --preview 'cat <(yay -Si {1}) <(pacman -Fl {1} 2>/dev/null | awk "!/\/$/ {print $2}")' |
+ xargs -ro yay -Rns
+}
+
+remove