#! /bin/zsh # # this file: # https://dataswamp.org/~incal/conf/.zsh/cal GCAT_HI='\e[47;30m:\e[0m:\e[01;31m:\e[0m' alias c='date +" %m"; gch' gc () { gcal \ --force-highlighting \ -H $GCAT_HI \ -q SE \ -s 1 | \grep . } gch () { local month=${1:-$(date +'%m')} gcal --force-highlighting \ -G \ -H $GCAT_HI \ -N \ -q SE \ -s 1 \ -X \ $month | \grep . | cut -d '(' -f 1 | sed -e "s/New Year's Day/nyårsdagen/" \ -e "s/Epiphany\/Three King's Day/trettondedag jul/" \ -e "s/Good Friday/långfredagen/" \ -e "s/Easter Sunday/påskdagen/" \ -e "s/Easter Monday/annandag påsk/" \ -e "s/May Day/första maj/" \ -e "s/Christ's Ascension Day/kristi himmelfärdsdag/" \ -e "s/Whitsunday\/Pentecost/pingstdagen/" \ -e "s/National Holiday/nationaldagen/" \ -e "s/All Saints' Day/alla helgons dag/" \ -e "s/Christmas Day/juldagen/" \ -e "s/Boxing Day/annandag jul/" } # also, 2020-06-20: midsommardagen # https://www.kalender.se/helgdagar