1
0
mirror of https://github.com/artizirk/dotfiles.git synced 2026-08-11 19:47:14 +03:00

Add support for debian's bsd calendar command

This commit is contained in:
2026-08-07 15:46:21 +03:00
parent 6fbb2f0a29
commit cb85d68372
+9
View File
@@ -272,6 +272,15 @@ setopt INC_APPEND_HISTORY_TIME
# by default show 3 months of calendar with week number
# but also allow to override it
function cal {
local BSDCALENDAR=$(which -p ncal)
if [[ $# -eq 0 ]]; then
$BSDCALENDAR -3b
return
else
$BSDCALENDAR -b "$@"
return
fi
local CALENDAR=$(which -p cal)
if [[ $# -eq 0 ]]; then
$CALENDAR -m -w3