Filed Under #cli

My Bash $PS1

07 September 2018


I spend a lot of time on the command-line, and every so often I run across a new way to make it show me more useful information. Today’s update: displaying the real time the last command took to run inline in the prompt. I can’t take credit for the idea - I found the approach on this excellent blog post - but I’ve got a few other interesting pieces in my $PS1 so I figure it’s worth sharing briefly. Here’s what my shell environment looks like: