diff options
Diffstat (limited to 'completions/_cal')
-rw-r--r-- | completions/_cal | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/completions/_cal b/completions/_cal index ed304aa7..1eec2674 100644 --- a/completions/_cal +++ b/completions/_cal @@ -11,28 +11,28 @@ _cal() case $prev in -m) if [[ $OSTYPE == *bsd* ]]; then - COMPREPLY=( $(compgen -W '{1..12}' -- "$cur") ) + COMPREPLY=($(compgen -W '{1..12}' -- "$cur")) return fi ;; -s) [[ $OSTYPE == *bsd* ]] && return ;; - -A|-B|-d|-H) + -A | -B | -d | -H) return ;; esac if [[ $cur == -* ]]; then local opts=$(_parse_help "$1") - COMPREPLY=( $(compgen -W '${opts:-$(_parse_usage "$1")}' -- "$cur") ) + COMPREPLY=($(compgen -W '${opts:-$(_parse_usage "$1")}' -- "$cur")) return fi local args _count_args - [[ $args -eq 1 ]] && COMPREPLY=( $(compgen -W '{1..12}' -- "$cur") ) + ((args == 1)) && COMPREPLY=($(compgen -W '{1..12}' -- "$cur")) } && -complete -F _cal cal ncal + complete -F _cal cal ncal # ex: filetype=sh |