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.

  • rafael@lemmy.mlOP
    link
    fedilink
    arrow-up
    1
    ·
    3 years ago

    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.

    • DonutVeteran@lemmy.ml
      link
      fedilink
      arrow-up
      1
      ·
      3 years ago

      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.

      • rafael@lemmy.mlOP
        link
        fedilink
        arrow-up
        1
        ·
        3 years ago

        Extracting the binary to ~/.cache/gitstatus worked! Thank you very much!!! Now there’s only that ugly symbols in the prompt :(

          • rafael@lemmy.mlOP
            link
            fedilink
            arrow-up
            1
            ·
            edit-2
            3 years ago

            I installed this font, but the problem persists :(

            Could it be something related to the terminal? I’m using GNOME Terminal 2.31.3

            • DonutVeteran@lemmy.ml
              link
              fedilink
              arrow-up
              1
              ·
              3 years ago

              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.

                • DonutVeteran@lemmy.ml
                  link
                  fedilink
                  arrow-up
                  1
                  ·
                  3 years ago

                  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.