pfetch-rs icon indicating copy to clipboard operation
pfetch-rs copied to clipboard

Windows: support more package managers

Open Un1q32 opened this issue 2 years ago • 9 comments
trafficstars

it runs but theres no logo, os detection, or package count memory, uptime, and kernel work though Screenshot 2023-02-24 152053

Un1q32 avatar Feb 24 '23 15:02 Un1q32

I fixed os and host detection in ab02f3c39e87eab7013453c6d9d1368c971c2c91. There is currently no logo because pfetch does not have one for Windows. I will probably try to make one but my ASCII art skills are not the best. Package count could probably work with chocolatey or winget, trying to count the packages installed otherwise would be too unreliable.

Gobidev avatar Feb 24 '23 18:02 Gobidev

image I added a simple logo, this is what pfetch now looks like on Windows.

Gobidev avatar Feb 24 '23 18:02 Gobidev

39785f191115c83321a7d4b6a8b916fc28361f96: I now use libmacchina for Windows package count, which currently supports cargo and scoop. I may try to add support for winget and chocolatey in the future.

Gobidev avatar Feb 24 '23 19:02 Gobidev

i recommend using # for the windows logo instead of l

Un1q32 avatar Feb 24 '23 19:02 Un1q32

You are right, that looks better. As of 5d037c558f0c69e0d6e3430b5383ed91f29df969 it now looks like this:

image

Gobidev avatar Feb 25 '23 20:02 Gobidev

Added Windows binary in v2.2.0

Gobidev avatar Mar 09 '23 14:03 Gobidev

Could you add support for pacman with msys2? I can't imagine it would be too difficult since pacman works with arch linux, and its the same on msys2

Un1q32 avatar Mar 15 '23 17:03 Un1q32

I did some testing and it is actually not that difficult, but it would requre a change in libmacchina and it is possible that this is too much of a niche usecase to be added. I will make a PR soon and we'll see.

Gobidev avatar Mar 21 '23 09:03 Gobidev

I wouldn't call this niche. MSYS2 is how people get any unix-like CLI things working on Windows without WSL (like if you run windows 8)

Un1q32 avatar Mar 21 '23 15:03 Un1q32