Use git-prompt for in repo check #5

Open
opened 2017-12-12 16:38:44 +00:00 by benie · 0 comments
Owner

Currently a superfluous call is made to check if pwd is a git repo, this could be replaced with a call to git-prompt instead to gather stats and determine if pwd is in a repo in one call.

Additionally, git-prompt should probably be renamed git-stats since this more accurately describes its purpose.

Currently a [superfluous call](https://code.infektor.net/config/zsh/src/master/prompt_fresh_setup#L40) is made to check if `pwd` is a git repo, this could be replaced with a call to `git-prompt` instead to gather stats and determine if `pwd` is in a repo in one call. Additionally, `git-prompt` should probably be renamed `git-stats` since this more accurately describes its purpose.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: config/zsh#5
No description provided.