{% if git.tracked %}
{{ git.branch or 'detached' }}
{% if git.upstream %}
{% if git.ahead %}↑{{ git.ahead }}{% endif %}
{% if git.behind %}↓{{ git.behind }}{% endif %}
{% if not git.ahead and not git.behind and not git.dirty %}✓ synced{% endif %}
{% else %}
no remote
{% endif %}
{% if git.dirty %}●{{ git.dirty }}{% endif %}
{% else %}
No git repo
{% endif %}