I just thought this tutorial could genuinely be useful to some fellow ricers.

It explains not only the git status part of making a pure zsh prompt that looks like this:

  • bloopernova@programming.dev
    link
    fedilink
    English
    arrow-up
    0
    arrow-down
    1
    ·
    1 year ago

    Powerlevel10k also does git status very well. And supports custom defined sections too. I use one to print out the epoch time, and another to print time left in an auth session.

    • tarneo@lemmy.mlOP
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      Yes. But p10k has many downsides:

      • requires using oh my ZSH, which alone is quite bad because of how much slower it makes the shell.
      • is a piece of software you’ll have to either install on each new device or have the software in your dotfiles. Bad practice. I very much prefer having no additional dependencies or overhead, plus the way I do it I can do whatever I want without the limitations of a prompt made by someone else, for which I’d have to dig in a lot of documentation. Compared to this, I only spent half an hour making a prompt exactly how I like, which doesn’t add overhead and doesn’t require a third party piece of software which I’d have to install on every new device.