chubin / cheat.sh

the only cheat sheet you need
https://cheat.sh/
MIT License
38.2k stars 1.78k forks source link

fix copy for mac #366

Closed xxchan closed 1 year ago

xxchan commented 1 year ago

fix https://github.com/chubin/cheat.sh/issues/361

tjex commented 9 months ago

Unfortunately this has not resolved the issue for me. #361 is still open and should be considered as so!

tjex commented 9 months ago

I had a look and the issue is that on modern MacOS systems the $DISPLAY env variable is no longer used (comes from X11). So the if statement will always enter the branch for -Z $DISPLAY, or "$DISPLAY variable is empty"