sindresorhus / pure

Pretty, minimal and fast ZSH prompt
MIT License
13.12k stars 971 forks source link

Git information no longer shown in prompt #649

Closed MarcelRobitaille closed 1 year ago

MarcelRobitaille commented 1 year ago

General information

System report (output of prompt_pure_system_report):

Other information

I have:

Problem description

Recently, the Git information like branch, dirty status, stash status has disappeared from my prompt. I did not update Pure, but it's possible Git or ZSH updated through a system update.

Reproduction steps

  1. Open a folder with a .git
  2. Notice that the branch and dirty status are not shown

My .zshrc:

fpath+=$HOME/.zsh/pure

autoload -U promptinit; promptinit
prompt pure
mafredri commented 1 year ago

It seems like you’ve updated Oh My Zsh 3 days ago. And I’d expect OMZ usage to be reflected in your .zshrc, but it’s not? Perhaps it’s related to that?

MarcelRobitaille commented 1 year ago

It seems like you’ve updated Oh My Zsh 3 days ago

Actually, I found out today that I was using a version of oh my zsh from 2017. I pulled the latest version and reproduced the issue, so that's why I put that version in the issue.

And I’d expect OMZ usage to be reflected in your .zshrc, but it’s not? Perhaps it’s related to that?

I was trying to create the most minimal .zshrc that could reproduce the issue. But, just now I commented back in the oh my zsh stuff... and it's working. I'll try to investigate and narrow down what in my config is causing the problem.

MarcelRobitaille commented 1 year ago

I narrowed it down to one line in my .zshrc:

source "$HOME/.zsh/async/async.zsh" 

I was using a 2 year old version of this plugin. I updated zsh-async, and everything is working as expected.