ThatOneCalculator / NerdFetch

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

Slackware support? #15

Closed xexpanderx closed 3 years ago

xexpanderx commented 3 years ago

Any chance you will add support for Slackware? :)

Thx!

ThatOneCalculator commented 3 years ago

Never used Slackware before. What's the package manager?

xexpanderx commented 3 years ago

slackpkg is the official one (there is also pkgtools but that is more basic).

ThatOneCalculator commented 3 years ago

Can you send the command to list your packages? Piping it into wc -l should result in the correct number of packages.

ThatOneCalculator commented 3 years ago

Nvm I can ls /var/log/packages/ | wc -l and just check if slackpkg exists. I'll add a commit when I'm on my computer (I'm on mobile rn)

xexpanderx commented 3 years ago

Hey, yes, doing ls on /var/log/packages/ should be enough.

ThatOneCalculator commented 3 years ago

@xexpanderx ok can you clone and test it? Let me know if it all goes good :)

xexpanderx commented 3 years ago

Screenshot_2021-01-02_21-33-24

Thx, (rpm) still shows up though.

xexpanderx commented 3 years ago

slackpkg is located at /usr/sbin/slackpkg btw.

ThatOneCalculator commented 3 years ago

Ah, didn't realize that it could've shown rpm. One sec.

ThatOneCalculator commented 3 years ago

Hm, slackpkg is close to the end on line 38, after rpm. Are you sure you have the latest version? And can you send the output of which slackpkg?

xexpanderx commented 3 years ago

Yes, the thing is, slackpkg is located at /usr/sbin, not /usr/bin. So, as a regular user, I dont have /usr/sbin/ in my path. So, a which will not find slackpkg. Maybe I can just add /usr/sbin/ to my PATH.

xexpanderx commented 3 years ago

I added /usr/sbin/slackpkg on that line instead of slackpkg. Thanks for your help!

ThatOneCalculator commented 3 years ago

Ok! So it should be

manager=$(which nix-env yum zypper dnf rpm apt brew port pacman xbps-query pkg emerge cave apk kiss pmm /usr/sbin/slackpkg yay cpm eopkg 2>/dev/null)

?

ThatOneCalculator commented 3 years ago

@xexpanderx you there?

xexpanderx commented 3 years ago

Hi, yes, sorry, exactly like that.

ThatOneCalculator commented 3 years ago

Cool. I'll close this for now, assuming that everything works.