zsh-git-prompt icon indicating copy to clipboard operation
zsh-git-prompt copied to clipboard

Problem after updating to Mac OS 12.3 (21E230)

Open kotlinski opened this issue 2 years ago • 5 comments

Stopped working as expected after 12.3 (21E230)

Before I got the number of diffs (up and down), now I just get the ⚡ icon.

kotlinski avatar Mar 16 '22 10:03 kotlinski

~/dev/zsh-git-prompt(master⚡) »

Before I used to have the number of changed files.

kotlinski avatar Mar 16 '22 10:03 kotlinski

cause of this problem may be that /usr/bin/python is deleted (/usr/bin/python3 still exists)

c.f. https://zenn.dev/sprout2000/articles/df9d59336a51d5 (sorry for Japanese blog only)

buko106 avatar Mar 17 '22 01:03 buko106

Yes, I figured that out after a few hours of debugging. I ended up adding an alias in .zshrc alias python=/usr/local/bin/python3.9

kotlinski avatar Mar 17 '22 07:03 kotlinski

Depending on circumstances, you might also need to install the xcode command line tools as described here: https://apple.stackexchange.com/questions/254380/why-am-i-getting-an-invalid-active-developer-path-when-attempting-to-use-git-a

patrick-mcdougle avatar May 06 '22 15:05 patrick-mcdougle

Yes, I figured that out after a few hours of debugging. I ended up adding an alias in .zshrc alias python=/usr/local/bin/python3.9

This will cause issues for anything attempting to run python2 code. Since this repo isn't being maintained use https://github.com/zsh-git-prompt/zsh-git-prompt instead. It works on systems with only python3.

hydrospanner avatar Oct 18 '22 16:10 hydrospanner