Skip to content

Instantly share code, notes, and snippets.

@roc
Last active May 2, 2016 14:09
Show Gist options
  • Save roc/653e48422bda76f6c157 to your computer and use it in GitHub Desktop.
Save roc/653e48422bda76f6c157 to your computer and use it in GitHub Desktop.
Show a calendar with today's date highlighted
cal | GREP_COLOR='1;32' grep -w -A4 -B6 --color "$(date +%e)"

Alias with

alias today="cal | GREP_COLOR='1;32' grep -w -A4 -B6 --color "$(date +%e)"
# or add to .aliases file
(echo ""; echo alias cal | GREP_COLOR='1;32' grep -w -A4 -B6 --color "$(date +%e)"') >> ~/.aliases
@roc
Copy link
Author

roc commented Dec 6, 2015

👀

screen shot 2015-12-06 at 13 58 59

@bwhitman
Copy link

bwhitman commented Dec 6, 2015

this just changed my life, 👍

@roc
Copy link
Author

roc commented Dec 6, 2015

@bwhitman It's a pretty big deal I know

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment