summaryrefslogtreecommitdiff
path: root/calhighlight.sh
diff options
context:
space:
mode:
authoryctct <yctct@yctct.com>2025-11-06 10:11:29 +0100
committeryctct <yctct@yctct.com>2025-11-06 10:11:29 +0100
commit1c7856fd3aff5fd059f040262d9647f60a18e0c1 (patch)
tree0e819830d4ea86f6359a5ac49470a4fe1e9b0255 /calhighlight.sh
Add scripts and functions
Diffstat (limited to 'calhighlight.sh')
-rwxr-xr-xcalhighlight.sh10
1 files changed, 10 insertions, 0 deletions
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
+ }
+
+