From 9bcceaf779b7ab6995cfdb2fff53eb8572e45d3d Mon Sep 17 00:00:00 2001 From: ngn Date: Sat, 3 Feb 2024 13:25:11 +0300 Subject: [PATCH] Add mp to packages output --- neofetch | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/neofetch b/neofetch index 7c892ba..014b96e 100755 --- a/neofetch +++ b/neofetch @@ -1565,6 +1565,14 @@ get_packages() { has swupd && tot swupd bundle-list --quiet has pisi && tot pisi li has pacstall && tot pacstall -L + + if has mp; then + mppkgs=$(MP_GREP=1 mp-list | grep -v ">>>") + while IFS= read -r line; do + packages+=( $line ) + done <<< "$mppkgs" + pac $((${#packages[@]}-pkgs_h)) + fi # Using the dnf package cache is much faster than rpm. if has dnf && type -p sqlite3 >/dev/null && [[ -f /var/cache/dnf/packages.db ]]; then