screenFetch
screenFetch copied to clipboard
Screenfetch does not work as expected on macos Big Sur 11.0.1
I'm submitting a ... (check one with "x")
[ x] bug report
On macos Big Sur version 11.0.1, see screenshot for errors
Previously on Catalina before upgrading, screenfetch
used to print a multi colored apple logo ascii art,
print 64bit Mac OS X 10.15
, x86_64 Darwin
along with correct information about shell, resolution, gpu, ram, uptime etc
solution:
due to the output from /usr/bin/sw_vers
was changed as:
$ /usr/bin/sw_vers
ProductName: macOS
ProductVersion: 11.0.1
BuildVersion: 20B29
So, the issue can be manual fixed by modify Line 1057:
if [[ -x /usr/bin/sw_vers ]] && /usr/bin/sw_vers | grep -E '\s*[mM]ac\s*OS\s*X?' >/dev/null; then
distro="Mac OS X"
By using grep -E '\s*[mM]ac\s*OS\s*X?'
instead of grep -i 'Mac OS X'
to match both Mac OS X
or macOS
in lower or higher version.
example:
@marslo please make a PR
There's a PR right here: https://github.com/KittyKatt/screenFetch/pull/681/commits/f7200af70c527ec01133eef501cab3dbae51688a
I still have that problem on a M1 Mac. I used the latest source code from Github.
Hello Is there a timeline for the resolution of this issue? Running a macbook pro 2019 and reinstalled using brew. Thanks
It was fixed here: https://github.com/KittyKatt/screenFetch/commit/f7200af70c527ec01133eef501cab3dbae51688a
it's fixed in master, but there hasn't been a release cut with this change
I still have that problem on a M1 Mac. I used the latest source code from Github.
I try now and its very easy man, just go this way;
This work for me in M1
$ sudo vim /opt/homebrew/Cellar/screenfetch/3.9.1/bin/screenfetch
This work for me in Intel chip
$ sudo vim /usr/local/Cellar/screenfetch/3.9.1/bin/screenfetch
Just diff installation directory of homebrew packages
Then go to the line 1057: like @marslo told and replace the line
if [[ -x /usr/bin/sw_vers ]] && /usr/bin/sw_vers | grep -E '\s*[mM]ac\s*OS\s*X?' >/dev/null; then
distro="Mac OS X"
Restart your terminal and done!
Can confirm, fixed it for me as well. Thank you @marslo . Can we cut a new release @KittyKatt ?
Yes, might need to be in a couple of days if that's okay?
Yup yup, we can most certainly handle that 😇 , thank you @KittyKatt !
Please add this to the next release. Thank you.
replacing that line of code worked for me viniciusgomes , thank you
If you've installed screenFetch via Homebrew, you can go ahead and get the fix with --HEAD
:
brew install --HEAD screenfetch