dracula / zsh

🧛🏻‍♂️ Dark theme for ZSH
https://draculatheme.com/zsh
MIT License
267 stars 70 forks source link

Fix the timestamp by changing %p to %T #6

Closed saladpanda closed 5 years ago

saladpanda commented 7 years ago

I assume the %p is taken from http://www.nparikh.org/unix/prompt.php which says it shows The precise time of day in 12-hour AM/PM format, with seconds..

%p does not work for me and I could not find any documentation on it. man zshmisc mentions

       %T     Current time of day, in 24-hour format.

       %t
       %@     Current time of day, in 12-hour, am/pm format.

       %*     Current time of day in 24-hour format, with seconds.

But %t and %@ don't work for me either and I think showing the seconds is unnecessary clutter. Hence I changed it to %T.

Screenshots

before:

screenshot_20170516_181912

after

screenshot_20170516_182230

avalonwilliams commented 5 years ago

This is fixed by #8