My msysgit Git bash command-line prompt looks like this right now:
GitUserName@WorkStationName WorkSpacePath (BranchName)
I would like to have a timestamp in front of that line, like HH:mm (hours:minutes).
Does anyone know how I can easily do this?
If by date you mean the current time/date, then this example can help:
It uses
$(/bin/date)and is a multi-line prompt containing date/time, full path, user and host, active terminal, even file count and space usage.It illustrates how you could integrate the date in your own git prompt.
The OP deblendewim comments: