From 1c7856fd3aff5fd059f040262d9647f60a18e0c1 Mon Sep 17 00:00:00 2001 From: yctct Date: Thu, 6 Nov 2025 10:11:29 +0100 Subject: Add scripts and functions --- calhighlight.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 calhighlight.sh (limited to 'calhighlight.sh') diff --git a/calhighlight.sh b/calhighlight.sh new file mode 100755 index 0000000..6f91ef7 --- /dev/null +++ b/calhighlight.sh @@ -0,0 +1,10 @@ +#!/usr/bin/env bash +# Highlight the current date when using cal +function cal() { + if [ -t 1 ]; + then ncal -b "${@}"; + else command cal "${@}"; + fi + } + + -- cgit v1.2.3