cross-posted from: https://lemmy.ml/post/61051
Hi. Please can someone help me with setting up my zsh? I’m having two problems:
When using the powerline10k theme, the shell gets stuck on
fetching gitstatusd
The prompt shows those weird characters in the screenshot
I have already installed powerline fonts. I don’t know what to do next… I appreciate any help. Thanks.
Edit: logs here.
Thanks for the response. You’re right: curl fails to fetch that file. However, I could manually download it. Do you know where I should extract it to? Thanks.
This thread provides a “manual installation method” you could try before attempting to manually download (as things could go wrong):
So in your case, you could modify this to update your powerlevel10k and then run the install script:
The install script can be found here on Github, which also provides clues to how
gitstatusd
is fetched: it’s actually a binary executable that is placed in a cache directory by the install script. This cache folder is referenced as"${GITSTATUS_CACHE_DIR:-${XDG_CACHE_HOME:-$HOME/.cache}/gitstatus}"
. So, probably yourCygwin home folder/.cache/gitstatus
should be where you should try to extractgitstatusd
manually.Extracting the binary to
~/.cache/gitstatus
worked! Thank you very much!!! Now there’s only that ugly symbols in the prompt :(No problem, glad it worked! For the symbols, try installing this font (“Meslo Nerd Font patched for Powerlevel10k”) and see if it helps.
I installed this font, but the problem persists :( Could it be something related to the terminal? I’m using GNOME Terminal 2.31.3
I think it should be alright? It is compatible, maybe try updating GNOME Terminal though. The stable version should be at 3.x.x for most systems.
Try doing the below after you update, or if you can’t update try it anyways, I guess 😉.
And finally try running
p10k configure
if possible on your system.It didn’t work :(
Also, I couldn’t manage to update the terminal.
Try restarting the terminal application and
zsh
, if you haven’t already, after changing the font.I thought of something else too to try. Perhaps GNOME Terminal isn’t rendering Unicode properly. Try setting the character encoding to UTF-8. Terminal -> Set Character Encoding -> UTF-8. If UTF-8 is already set, set it to a different encoding and then back to UTF-8.
I tried… It didn’t work :(