#!/bin/sh # Menu with official repository packages. package="$(pacman -Slq | fzf -m --preview 'pacman -Si {1}')" [ ! "$package" ] && exit sudo pacman -S "$package"