Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No git info after new terminal window with Cmd-N #21

Closed
mhubig opened this issue Aug 17, 2012 · 2 comments
Closed

No git info after new terminal window with Cmd-N #21

mhubig opened this issue Aug 17, 2012 · 2 comments

Comments

@mhubig
Copy link

mhubig commented Aug 17, 2012

Hello Oliver,

nice extention, thank you for that! ;-) But I have a little trouble here ...

I configured my iTerm to inherit the current $PDW to a newly opened window (e.g. with Cmd-N).
But if I'm in a git repo and press Cmd-N I have no git info in my new window. That's because the
only zsh-hook that's getting triggert is precmd an precmd is not doing anything because
__EXECUTED_GIT_COMMAND is not set.

To quick fix this, I manually put __EXECUTED_GIT_COMMAND=1 at the end of my .zshrc but maybe
you have a better solution for this typically start-up condition issue ...

@olivierverdier
Copy link
Owner

I don't have a good solution for this. Do I understand correctly that one of the precmd instruction overrides the other? There is probably a solution using some zsh witchery, but I'm no zsh expert.

@olivierverdier
Copy link
Owner

Caching is now disabled by default (3261da4), so this should be fixed.

asilata pushed a commit to asilata/zsh-git-prompt that referenced this issue Jul 25, 2018
- Clarify diverge test, different numbers.
biggerfisch added a commit to biggerfisch/zsh-git-prompt that referenced this issue May 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants