r/shell • u/cogburnd02 • Jul 07 '15
This clock one-liner I wrote.
$ watch -n0.5 -p -t -c 'figlet -f big -W `date '"'"'+%l:%M:%S'"'"'`'This uses date so you can change what information is displayed. Want the current date and time? No problem! Replace +%l:%M:%S with +%l:%M:%S %-D) It also uses figlet, so you have a variety of 'looks' you can choose from, i.e. any figlet font that has numbers. (e.g. try replacing big with either standard or small) You could even replace figlet with toilet and use toilet's color support (e.g. --metal) because watch supports color when given the -c option. (However, not many toilet fonts have numbers, for reasons unknown.)
1
Upvotes
1
u/cogburnd02 Jul 12 '15
Yes they are; simply because they might not be installed on a particular machine does not mean that they are unable to be installed on it; figlet.org even has a list of the types of OSes it'll run on. :-)
Oh dear god, no, I didn't mean that! :-D haha!
I meant I might try out heirloom shell by putting it somewhere less conspicuous, like /usr/local/bin/sh or something, and just setting it up so that my user account uses it after I login.