added pacman scripts

This commit is contained in:
Niklas 2020-06-17 21:33:58 +02:00
parent 929e2d330b
commit bc4be96cb1
2 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1,2 @@
#!/usr/bin/env bash
comm -23 <(pacman -Qqe | sort) <({ pacman -Qqg base-devel; expac -l '\n' '%E' base; } | sort -u) | fzf --preview 'pacman -Qil {}' --bind 'enter:execute(pacman -Qil {} | less)'

View File

@ -0,0 +1,6 @@
#!/usr/bin/env sh
PKG=$(pacman -Slq | fzf --preview 'pacman -Si {1}')
if [ -n "$PKG" ]; then
sudo pacman -S "$PKG"
fi