mirror of
https://git.decapod.one/brethil/dotfiles
synced 2024-12-22 23:31:32 +01:00
10 lines
283 B
Bash
10 lines
283 B
Bash
|
if ! command -v pacman &>/dev/null; then return; fi
|
||
|
|
||
|
function pacpreview() {
|
||
|
if ! command -v fzf &>/dev/null; then
|
||
|
echo "Requires fzf! Quitting"
|
||
|
return 1
|
||
|
fi
|
||
|
pacman -Slq | fzf --multi --preview 'grc --colour=on pacman -Si {1}' | xargs -ro sudo pacman -S
|
||
|
}
|