ThatOneCalculator / NerdFetch

A POSIX *nix fetch script using Nerdfonts
https://aur.archlinux.org/packages/nerdfetch/
MIT License
478 stars 24 forks source link

use all package managers found on system #21

Closed netkv closed 3 years ago

netkv commented 3 years ago

currently nerdfetch uses only first one that it finds change i made allows it to count package managers in similiarish way to neofetch Screenshot_20210310_105449 considering it counts both dnf and rpm it may be good idea to remove one of them (propably dnf as rpm is more universal), what do you think?

ThatOneCalculator commented 3 years ago

Not only does this look extremely cursed, this kinda sucks for us arch users, I'd say 99% of us don't wanna see pacman alongside yay or paru.

I would close this, but if you can make a POSIX implementation of this as a -a flag, I'll add it. Basically, nerdfetch is the default but nerdfetch -a would show all package managers.

ThatOneCalculator commented 3 years ago

@Pan00Pernicek do you plan on implementing it or should I close this pr?

netkv commented 3 years ago

ill try later

ThatOneCalculator commented 3 years ago

@Pan00Pernicek u gonna or nah?

netkv commented 3 years ago

it seems to work on my machine, but it propably needs more testing

ThatOneCalculator commented 3 years ago
$ nerdfetch -a  
/sbin/nerdfetch: line 60: qlist: command not found

Non posix :pensive:

Sorry, it was a nice try but I don't think I'll be implementing this.

netkv commented 3 years ago

but qlist is in current version already thought

ThatOneCalculator commented 3 years ago

No lol

netkv commented 3 years ago

https://github.com/ThatOneCalculator/NerdFetch/blob/1372708abaabece2edae63baefea40a471503e13/nerdfetch#L58

ThatOneCalculator commented 3 years ago

That's only for Gentoo

netkv commented 3 years ago

yea, weird that in my version it somehows finds emerge on your system

netkv commented 3 years ago

i think i found cause of it, it seems like when you have pkg binary somewhere it tries to run qlist, but it seems like normal nerdfetch have also that issue but it wont most of time, ill try fix it

netkv commented 3 years ago

maybe this wont error https://raw.githubusercontent.com/Pan00Pernicek/rfetch/patch-3/nerdfetch