dotfiles/scripts/archlinux-packages-menu
2020-10-28 20:52:59 +02:00

6 lines
197 B
Bash
Executable file

#!/usr/bin/env bash
set -euo pipefail
if package="$(expac --sync '%r/%a/%n %v - %d' | rofi -dmenu)" && [[ -n "$package" ]]; then
xdg-open "https://www.archlinux.org/packages/${package%% *}/"
fi