diff options
Diffstat (limited to 'completions/lastlog')
-rw-r--r-- | completions/lastlog | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/completions/lastlog b/completions/lastlog index 19e928c2..214a174d 100644 --- a/completions/lastlog +++ b/completions/lastlog @@ -6,20 +6,20 @@ _lastlog() _init_completion -s || return case $prev in - --before|--help|--time|-!(-*)@([bt]|h*)) + --before | --help | --time | -!(-*)@([bt]|h*)) return ;; - --user|-!(-*)u) - COMPREPLY=( $(compgen -u -- "$cur") ) + --user | -!(-*)u) + COMPREPLY=($(compgen -u -- "$cur")) return ;; esac $split && return - COMPREPLY=( $(compgen -W '$(_parse_help "$1")' -- "$cur") ) - [[ $COMPREPLY == *= ]] && compopt -o nospace + COMPREPLY=($(compgen -W '$(_parse_help "$1")' -- "$cur")) + [[ ${COMPREPLY-} == *= ]] && compopt -o nospace } && -complete -F _lastlog lastlog + complete -F _lastlog lastlog # ex: filetype=sh |