News for hackers. Stuff that matters.
Re:An analog clock in your bash prompt on OS X by chch on Wednesday April 17, 2013 @09:42PM (#5568474)
Instead of using a very long set of If statements, I think you could just use something like

    a=$((`date +%M`/15));b=$((128335 + `date +%l` +((a*(a**2-39*a+110))/6)));printf '%x' $b;
and print the resulting hex's character, no?

(I'd finish off the code myself, but I have a bus to catch)

Edit: Ah, I see Sephr came prepared. ;)

Re:An analog clock in your bash prompt on OS X by nojhan on Saturday April 20, 2013 @05:09PM (#5582815)
I've proposed a PR that do just that (maybe a little bit more readable): https://github.com/paulsm/bashtime/pull/1

Also, the code is now used in the liquid prompt: https://github.com/nojhan/liquidprompt/commit/91959b636af751...

Re:An analog clock in your bash prompt on OS X by psm42 on Wednesday April 17, 2013 @09:44PM (#5568482)
I'm sure you could. It's a quick hack.
Re:An analog clock in your bash prompt on OS X by chch on Wednesday April 17, 2013 @10:02PM (#5568546)
No criticism here; your quick hack let me do a quick hack and learn some bash in the process. :)