From c461704b361ef28221010e630a4bcd753cc154fb Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Mon, 4 Jun 2018 06:41:39 +1000 Subject: [PATCH] packages: Run flatpak/snap after regular package managers --- neofetch | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/neofetch b/neofetch index 03b5adb9..e9fb3c81 100755 --- a/neofetch +++ b/neofetch @@ -1261,8 +1261,6 @@ get_packages() { has "sorcery" && tot gaze installed has "alps" && tot alps showinstalled has "butch" && tot butch list - has "flatpak" && tot flatpak list - has "snap" && tot snap list && ((packages-=1)) # Counting files/dirs. has "emerge" && dir /var/db/pkg/*/*/ @@ -1288,6 +1286,10 @@ get_packages() { has "pkg" && tot pkg list ;; esac + + # List these last as they accompany regular package managers. + has "flatpak" && tot flatpak list + has "snap" && tot snap list && ((packages-=1)) ;; "Mac OS X" | "MINIX")