Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

add show_package_total option #2212

Closed
wants to merge 2 commits into from
Closed

add show_package_total option #2212

wants to merge 2 commits into from

Conversation

PauloGDPeixoto
Copy link

@PauloGDPeixoto PauloGDPeixoto commented Oct 10, 2022

Description

I found that the package count was degrading the performance of neofetch in my machines, so I added a parameter to optionally disable this particular output.

Features

Add --show_package_total flag to enable/disable the package count display in neofetch.

hayatehay added a commit to nmimusic/unifetch that referenced this pull request Oct 11, 2022
@hayatehay
Copy link

Wow, it works well on Univalent GNU/Linux!

2212

@hayatehay
Copy link

Oops, I forgot to attach the image what I turned off the option.
VirtualBox_plasma_13_10_2022_12_45_19


elif [[ $package_managers == tiny ]]; then
packages+=" (${manager_string%,*})"
if [[ $show_package_total == "on" ]]; then

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be much better to return early if $show_package_total == "off" rather than re-indent the entire function

@hykilpikonna
Copy link

This feature already exists in neofetch. You can use --disable <infoname> to disable the detection of a specific item. In this case, you can use --disable packages

image

You can also turn off package manager detection by editing the ~/.config/neofetch/config.conf (specifically, comment out the info "Packages" packages line)

@PauloGDPeixoto PauloGDPeixoto closed this by deleting the head repository Oct 26, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants