Closed luizberti closed 10 years ago
I tend to agree. It's an easy change without much of any downside.
I'm currently working on a pull request here, still have some issues to squash though...
I am down for prefixing them. I believe we exposed them for testing exclusively but we should be good netizens about it.
Since all of the functions in the script are being exported into the environment, maybe we should reconsider their generic names since they can be invoked from the interactive shell.
For example, instead of
is_branch1_behind_branch2
, call itprompt_is_branch1_behind_branch2
.is_
orget_
are too generic for something so specific that's being exported into the ecosystem, and have a chance of interfering with autocompletion for some other commands (as in my case).Prefixing the exported functions with
prompt
orpromptfn
would be an easy and sensible solution.