dylanaraps / neofetch

🖼️ A command-line system information tool written in bash 3.2+
MIT License
21.85k stars 1.76k forks source link

[Feature Request] Implement tea.xyz #2235

Open DitchComfort opened 1 year ago

DitchComfort commented 1 year ago

Add tea to Neofetch

Would be super cool if it was possible to implement tea (basically brew2), and to show how many packages you have and/or dependencies, etc. Something similar to what is already available with brew and how many packages you have installed on your system.

https://tea.xyz

hykilpikonna commented 1 year ago

Is there a command-line option to list installed packages?

hykilpikonna commented 1 year ago

Ok so after some research, tea is more like a virtual environment and doesn't install packages globally in the system. So there's no way to tell if a package is installed... (https://github.com/teaxyz/cli/blob/7a303d3a72defca7a5321341a8a7e11e18404be8/README.md?plain=1#L53)

hykilpikonna commented 1 year ago

Okay, added it by finding directories in the local folder find ~/.tea -maxdepth 2 -mindepth 2 -type d

image
hykilpikonna commented 1 year ago

Thank you for reporting the issue!

This issue is fixed in hyfetch by commit d7c4d493. This repo (dylanaraps/neofetch) seems to be no longer maintained.

HyFetch is a fork of neofetch with LGBTQ pride flags, but the repo also maintains an updated version of the original neofetch, addressing many issues and pull requests.

Read the "Running Updated Original Neofetch" section for more info!

DitchComfort commented 1 year ago

Hi and thank you for really trying. I also can't seem to update to the latest nightly. Probably I doing something wrong…

DitchComfort commented 1 year ago

I think you should use another command to count the actual packages with tea, because there are a couple of folders you don’t want in your final output. Try and replace with something like this:

ls ~/.tea | egrep -v '^tea.xyz$|^tmp$'| wc -l

hykilpikonna commented 1 year ago

ls ~/.tea | egrep -v '^tea.xyz$|^tmp$'| wc -l

That wouldn't give an accurate estimate though, because there could be multiple packages under a same organization (e.g. the command would show sourceware.org as one package, but there are two packages (bzip2 and libffi) under the sourceware.org directory.

DitchComfort commented 1 year ago

Hmm okey, yes you probably right :) I don't know how to really count then.