Zsh: refactored code that shows git info in prompt