add snap support

This commit is contained in:
Joshix 2021-07-30 23:54:45 +02:00
parent 9d6f99d2e9
commit f854bdbf70

View file

@ -240,6 +240,7 @@ int pkgman()
{"dnf list installed 2> /dev/null | wc -l", "(dnf)"}, {"dnf list installed 2> /dev/null | wc -l", "(dnf)"},
{"qlist -I 2> /dev/null | wc -l", "(emerge)"}, {"qlist -I 2> /dev/null | wc -l", "(emerge)"},
{"flatpak list 2> /dev/null | wc -l", "(flatpak)"}, {"flatpak list 2> /dev/null | wc -l", "(flatpak)"},
{"snap list 2> /dev/null | wc -l", "(snap)"},
{"guix package --list-installed 2> /dev/null | wc -l", "(guix)"}, {"guix package --list-installed 2> /dev/null | wc -l", "(guix)"},
{"nix-store -q --requisites /run/current-sys_vartem/sw 2> /dev/null | wc -l", "(nix)"}, {"nix-store -q --requisites /run/current-sys_vartem/sw 2> /dev/null | wc -l", "(nix)"},
{"pacman -Qq 2> /dev/null | wc -l", "(pacman)"}, {"pacman -Qq 2> /dev/null | wc -l", "(pacman)"},