kiss: faster package list'

This commit is contained in:
Dylan Araps 2019-09-29 12:24:18 +03:00
parent 935fd295dd
commit 7e70668ce7

2
pfetch
View File

@ -407,7 +407,6 @@ get_pkgs() {
case $os in case $os in
Linux*) Linux*)
# Commands which print packages one per line. # Commands which print packages one per line.
has kiss && kiss l
has bonsai && bonsai list has bonsai && bonsai list
has pacman-key && pacman -Qq has pacman-key && pacman -Qq
has dpkg && dpkg-query -f '.\n' -W has dpkg && dpkg-query -f '.\n' -W
@ -417,6 +416,7 @@ get_pkgs() {
has guix && guix package --list-installed has guix && guix package --list-installed
# Directories containing packages. # Directories containing packages.
has kiss && printf '%s\n' /var/db/kiss/installed/*/
has brew && printf '%s\n' "$(brew --cellar)/"* has brew && printf '%s\n' "$(brew --cellar)/"*
has emerge && printf '%s\n' /var/db/pkg/*/*/ has emerge && printf '%s\n' /var/db/pkg/*/*/
has pkgtool && printf '%s\n' /var/log/packages/* has pkgtool && printf '%s\n' /var/log/packages/*