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.

Hmm, you might have to edit the config file ~/.zshrc and add the GITSTATUS_LOG_LEVEL=DEBUG parameter for further output about the specific part of “initialization” that failed. Otherwise, it’s hard to determine what exactly happened.


You’re right! I edited the post including the link to the logs. Thanks!

Ok, sorry for the late response. Looking through the logs, it seems that the problem may be curl somehow failing to fetch gitstatusd. The script tries fetching gitstatusd-linux-x86_64.tar.gz at several mirrors, from what I can gather, and all of them fail.

This might be because curl itself is not working. I recall that there were reports of curl not working on Cygwin which I read about somewhere, and Cygwin seems to be what you’re on. I’d check if you can run the curl commands used in the logs manually to fetch the resources at those URLs. So try running:

curl -q -kfsSL -- https://gitee.com/romkatv/gitstatus/raw/release-v1.3.1/release/gitstatusd-linux-x86_64.tar.gz


curl -q -kfsSL -- https://github.com/romkatv/gitstatus/releases/download/v1.3.1/gitstatusd-linux-x86_64.tar.gz

Or any one of those mirror links in the logs, and see what happens.


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):

git -C ~/.oh-my-zsh/custom/themes/powerlevel10k pull
~/.oh-my-zsh/custom/themes/powerlevel10k/gitstatus/install -f

So in your case, you could modify this to update your powerlevel10k and then run the install script:

$ git -C zsh_dir/custom/themes/powerlevel10k pull
$ zsh_dir/custom/themes/powerlevel10k/gitstatus/install -f

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 your Cygwin home folder/.cache/gitstatus should be where you should try to extract gitstatusd 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 😉.

GNOME Terminal (the default Ubuntu terminal): Open Terminal → Preferences and click on the selected profile under Profiles. Check Custom font under Text Appearance and select MesloLGS NF Regular.1

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 :(

Did you run p10k configure after you changed the font? You should run it after you change the font. Afterwards, try updating GNOME terminal if the problem persists. You mentioned that you couldn’t update it last time, was there a specific reason? I could help with that.

You could also try filing an issue on their Github and see if that gets you anywhere.


Sorry for the delay, I broke the system trying to install zsh… I did run p10k config, reboot, and tried updating the terminal. Actually, that version seems to be the latest available (it is a RedHat VDI). Well, maybe I’ll open an issue in github :( Thank you very much for your help!

No problem. Best of luck!

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

  • 0 users online
  • 14 users / day
  • 46 users / week
  • 139 users / month
  • 381 users / 6 months
  • 3368 subscribers
  • 902 Posts
  • Modlog