From c36c4a4e4d3e701f378f4bea15a6320a4447da89 Mon Sep 17 00:00:00 2001 From: Tommi Kyntola Date: Sun, 6 Oct 2013 21:44:45 +0300 Subject: cal: added -w|--week for showing week numbers Added week numbers both in ISO-6801 and North America numbering. The mode is determined by first day of the week, Monday for ISO and Sunday for North America mode. ISO week numbers are defined as the first Thursday being part of week 1. The North America numbering is defined, at least by gcal, as first Sunday being in the first week. Signed-off-by: Tommi Kyntola --- bash-completion/cal | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bash-completion/cal') diff --git a/bash-completion/cal b/bash-completion/cal index 9a90a2a59..1510eb1fa 100644 --- a/bash-completion/cal +++ b/bash-completion/cal @@ -11,7 +11,7 @@ _cal_module() esac case $cur in -*) - OPTS="--one --three --sunday --monday --julian --year --version --help" + OPTS="--one --three --sunday --monday --julian --year --week --version --help" COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) ) return 0 ;; -- cgit v1.2.3-55-g7522