A few months back, dbatools wizard Fred created a prompt that was so awesome, I never had to use
Measure-Commandagain. It was cool enough that a number of us ended up adopting it, so I figured I’d share.
Performance is important to us so that’s what the prompt is all about. Nothing fancy, just the current working directory and how long the command took to run.
The prompt shows how long the previous command took to run. Click through for the code to do this.