You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Customize .zshrc with export GEOMETRY_RPROMPT=(geometry_git_rebase)
Open shell, navigate to non-git directory
See error
Expected behavior
No errors, no stderr output
Screenshots
A single geometry_git_* function referenced
All default geometry_git_* functions referenced
Desktop (please complete the following information):
OS: macOS 10.15.5 (19F101)
The text was updated successfully, but these errors were encountered:
duncanbeevers
changed the title
Custom git GEOMETRY_RPROMPT
Custom git GEOMETRY_RPROMPT spews to stderr
Jun 12, 2020
Describe the bug
The meta-function
geometry_git
guards against non-git directories.Customizing
GEOMETRY_RPROMPT
with a limited set ofgeometry_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 bygeometry_git
is especially noisy.To Reproduce
Steps to reproduce the behavior:
.zshrc
withexport GEOMETRY_RPROMPT=(geometry_git_rebase)
Expected behavior
No errors, no stderr output
Screenshots
![2020-06-10 at 1 46 PM](https://user-images.githubusercontent.com/7367/84316893-c4f64b00-ab20-11ea-8396-7dfdac7c50d2.png)
A single
geometry_git_*
function referencedAll default
![2020-06-10 at 1 53 PM](https://user-images.githubusercontent.com/7367/84317541-ca07ca00-ab21-11ea-8885-470c909e203b.png)
geometry_git_*
functions referencedDesktop (please complete the following information):
The text was updated successfully, but these errors were encountered: