diff options
Diffstat (limited to 'completions/faillog')
-rw-r--r-- | completions/faillog | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/completions/faillog b/completions/faillog index 5e7d2ab2..c8b81bd0 100644 --- a/completions/faillog +++ b/completions/faillog @@ -6,22 +6,22 @@ _faillog() _init_completion -s || return case $prev in - --help|--lock-time|--maximum|--time|-!(-*)[hlmt]) + --help | --lock-time | --maximum | --time | -!(-*)[hlmt]) return ;; - --user|-!(-*)u) - COMPREPLY=( $(compgen -u -- "$cur") ) + --user | -!(-*)u) + COMPREPLY=($(compgen -u -- "$cur")) return ;; esac $split && return - if [[ "$cur" == -* ]]; then - COMPREPLY=( $(compgen -W '$(_parse_help "$1")' -- "$cur") ) - [[ $COMPREPLY == *= ]] && compopt -o nospace + if [[ $cur == -* ]]; then + COMPREPLY=($(compgen -W '$(_parse_help "$1")' -- "$cur")) + [[ ${COMPREPLY-} == *= ]] && compopt -o nospace fi } && -complete -F _faillog faillog + complete -F _faillog faillog # ex: filetype=sh |