Skip to content

Instantly share code, notes, and snippets.

View leyyce's full-sized avatar
🩷

Leya Wehner leyyce

🩷
View GitHub Profile
@leyyce
leyyce / list_optional_deps.fish
Last active February 26, 2025 17:29
[bash/fish] pacman: List optional dependencies for all installed packages
function list_optional_deps
for pkg in (pacman -Qeq)
set -l deps (pacman -Qi $pkg | awk '
BEGIN {flag=0}
/^Optional Deps/ {
flag=1;
sub(/^[^:]+:[ \t]*/, "");
print;
next
}