git functions must be defined before prompt