-
Notifications
You must be signed in to change notification settings - Fork 942
Conversation
All seems to be ok with Macos. But with my Linux (debian) I have an error with ps.
So I took a look in your code and it look like the variable |
If I add that function at the begining of the script trim()
{
local var="${*}"
# remove leading whitespace characters
var="${var#"${var%%[![:space:]]*}"}"
# remove trailing whitespace characters
var="${var%"${var##*[![:space:]]}"}"
echo -n "${var}"
} I have
I use a powerline font so I took another look in your script |
Hah! Good point @JulienPivard ! As this is a port from neofetch, I'll have to lookup how they resolve their I'll have a look into that tomorrow. |
I did not know there was a $OS variable. But in the script there is |
You are right. Here is the code that fills |
- Add trim function - Make our $OS and neofetchs $os compatible
@JulienPivard I (hopefully) fixed the font debugging script. Could you give it another try? |
I think trim don't remove all the space. |
Strange.. This must be broken in the original repo as well.. Anyway. I fixed it now. |
It's work... for trim
|
if I have the time I would try with other terminals. |
Great idea, @dritter! This should help quite a bit. I would love to get this in for v0.6.6 to help with debugging going forward. Would you like to do further testing or is this ready to go? @julienfalque - Thanks so much for spending the time to help us test this! That is extremely valuable for the project =) |
@JulienPivard It would be great, if you could test this on other terminals as well! @bhilburn I think we need a bit testing here. I'll try to test it soon (probably next week). But the Gnome Issue should be fixed in the neofetch repo. I want to keep the difference as small as possible, to be able to copy the code in the future again. |
This is now fixed in master, and the v0.6.6 release will include the fix. Thanks so much! |
The new GitHub Issue Templates show that a lot of folks have trouble with fonts and problems with the
debug/font-issues.zsh
script. The script is a port of the font detection from dylanaraps/neofetch. In the our previous version I missed some functions (get_ppid
andget_process_name
) that now cause trouble.Last but not least, I updated the font detections functions.
It would be super helpful if somebody could test this under WSL and Linux.