Skip to content

Commit 0b189aa

Browse files
committed
redox pkg count
1 parent 137382d commit 0b189aa

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

pfetch

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -722,6 +722,16 @@ homebrew_pkg_count() {
722722
fi
723723
}
724724

725+
redox_pkg_count() {
726+
while IFS= read -r line; do
727+
case $line in
728+
(*PackageName*) printf '\n' ;;
729+
esac
730+
done <<- EOF
731+
$(pkg list)
732+
EOF
733+
}
734+
725735
count_pkg() {
726736
# This function is used to count the number of packages installed
727737
# from each individual package manager.
@@ -906,6 +916,10 @@ get_pkgs() {
906916
(SerenityOS)
907917
count_pkg SerenityOS 0 serenity_pkg_count
908918
;;
919+
920+
(Redox)
921+
count_pkg Redox 0 redox_pkg_count
922+
;;
909923
esac
910924

911925
# package managers that are on many different systems

0 commit comments

Comments
 (0)