0.0.1 • Published 3 years ago

spacetime-cal v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

The cal command is one of the earliest, and longest-lasting UNIX shell commands. It is beautiful.

This is just the same thing, basically. I've tried making it easier to hack, and nicer to look-at.

Thats's all.

Unix applications have a real aesthetic - here's how you can get the weeks to start on a Monday, using cal ¹-

cal | awk '{ print " "$0; getline; print " Mo Tu We Th Fr Sa Su"; \
getline; if (substr($0,1,2) == " 1") print "                    1 "; \
do { prevline=$0; if (getline == 0) exit; print " " \
substr(prevline,4,17) " " substr($0,1,2) " "; } while (1) }'

i mean,

spacetime-cal --monday

Options

Built with spacetime, compromise-dates, and Ink.

MIT