The default format for my terminal line looks like this:
David-Mac-mini:~ david$
I'd love if there was a way for it to show by default as:
David-Mac-mini:~ david$ [Hh:Mm:Ss]
You have edit or create your .bashrc or .bash_profile profile file.
Add the command export PS1="\t"
You can add the following lines to customize your Terminal prompt:
\d – Current date
\t – Current time
\h – Host name
\# – Command number
\u – User name
\W – Current working directory (ie: Desktop/)
\w – Current working directory with full path (ie: /Users/Admin/Desktop/)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With