faynopi / meowfetch

minimal system information fetcher program written in go.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Shell showing as SH even when using Bash/ZSH/Fish etc

0xBra3d3n opened this issue · comments

Meowfetch only displaying SH as the system shell even when BASH, ZSH, FISH, etc are in use.

System Details -

EndeavourOS - Arch 5.19.2-arch1-1 Kernel
ZSH Shell (Do have Bash and FISH installed)

Steps to replicate -
Run meowfetch with the shell option added to widgets =
Produces the following for detected shell -
image
Run meowfetchusing env SHELL=<shellofchoice> meowfetch
Completes with detected shell as sh
image

Sorry for the inconvenience. I'll look into it as soon as possible.

It appears that I made a mistake in:
https://github.com/Itsnexn/meowfetch/blob/98d1968f07151157f1156ceb6250ace04e9739c0/internals/widgets/shell.go#L27
by setting the return value to sh after checking the environment variable... :^)

This should fix it for the time being :)