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

Custom git GEOMETRY_RPROMPT spews to stderr #295

Closed
duncanbeevers opened this issue Jun 10, 2020 · 0 comments
Closed

Custom git GEOMETRY_RPROMPT spews to stderr #295

duncanbeevers opened this issue Jun 10, 2020 · 0 comments

Comments

@duncanbeevers
Copy link
Contributor

Describe the bug
The meta-function geometry_git guards against non-git directories.
Customizing GEOMETRY_RPROMPT with a limited set of geometry_git_* functions doesn't benefit from this guard so the prompt spews to stderr in non-git directories.

Including the complete set of geometry_git_* functions without the preamble guard provided by geometry_git is especially noisy.

To Reproduce
Steps to reproduce the behavior:

  1. Customize .zshrc with export GEOMETRY_RPROMPT=(geometry_git_rebase)
  2. Open shell, navigate to non-git directory
  3. See error

Expected behavior
No errors, no stderr output

Screenshots
A single geometry_git_* function referenced
2020-06-10 at 1 46 PM

All default geometry_git_* functions referenced
2020-06-10 at 1 53 PM

Desktop (please complete the following information):

  • OS: macOS 10.15.5 (19F101)
@duncanbeevers duncanbeevers changed the title Custom git GEOMETRY_RPROMPT Custom git GEOMETRY_RPROMPT spews to stderr Jun 12, 2020
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

1 participant