Use zsh's built-in path substitution.
More docs on substitutions used.
No need to actually run anything -- we just want to know if we're in a git repo.
Minor spacing fixes.