zsh: prompt: do git parsing inside shell script
zsh: fix up edit mode and colours