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):
Describe the bug The meta-function
geometry_git
guards against non-git directories. CustomizingGEOMETRY_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 A single![2020-06-10 at 1 46 PM](https://user-images.githubusercontent.com/7367/84316893-c4f64b00-ab20-11ea-8396-7dfdac7c50d2.png)
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):