From c99ee2aab00f6e09c5ea4d887ac6722894d6dc37 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Wed, 3 Mar 2021 09:48:10 +0100 Subject: [PATCH] shell: alias: add cal alias with useful options In the past, Debian's `cal` used to color the current day which was enough for my use. But recently this changed to the more traditional `cal` output with no highlight. So use `ncal` directly and add other useful options. --- shell/shell/aliases.in | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/shell/shell/aliases.in b/shell/shell/aliases.in index c78823d..a173010 100644 --- a/shell/shell/aliases.in +++ b/shell/shell/aliases.in @@ -141,4 +141,8 @@ fi # Use short `ip` output per default. alias ip='ip -brief -color=auto' +# Calendar with traditional output (-b), weeks starting on Monday (-M), week +# numbers (-w) and the previous, current and next month (-3) +alias cal='ncal -b -M -w -3' + # vim: ft=sh -- 2.45.2