[zshrc] Improve handling of new git repo state.