From 53e6b12bdfdc6b835192458bbb98b81b77599e75 Mon Sep 17 00:00:00 2001 From: Jun-ichi Takimoto Date: Sat, 26 Nov 2016 16:36:21 +0900 Subject: 40013: process zsh-specific time format extensions correctly --- Completion/Unix/Type/_date_formats | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Completion/Unix') diff --git a/Completion/Unix/Type/_date_formats b/Completion/Unix/Type/_date_formats index 45bda823f..6bd5c6d6b 100644 --- a/Completion/Unix/Type/_date_formats +++ b/Completion/Unix/Type/_date_formats @@ -32,7 +32,7 @@ specs=( 'H:hour (00-23)' 'I:hour (01-12)' 'j:day of year (001-366)' - 'k:hour ( 1-23)' + 'k:hour ( 0-23)' 'l:hour ( 1-12)' 'm:month (01-12)' 'M:minute (00-59)' @@ -102,4 +102,4 @@ done _describe -t date-format-specifier 'date format specifier' specs \ -p "${(Q)PREFIX:-%}" -S '' -_message -e date-format-precision 'precision for %%. (1-6)' +[[ $1 == zsh ]] && _message -e date-format-precision 'precision for %%. (1-6)' -- cgit v1.2.3-70-g09d2