This file is indexed.

/usr/share/bash-completion/completions/caffeinate is in caffeine 2.9.4-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# caffeinate(1) completion                                     -*- shell-script -*-
# Adapted from bash-completion's ccache completion script
# License: GPL-V2+

_caffeinate()
{
    local cur prev words cword
    _init_completion || return

    local i
    for (( i=1; i <= COMP_CWORD; i++ )); do
        if [[ ${COMP_WORDS[i]} != -* ]]; then
            _command_offset $i
            return
        fi
    done

    case "$prev" in
        -h|--help|-V|--version)
            return
            ;;
    esac

    if [[ "$cur" == -* ]]; then
        COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) )
        [[ $COMPREPLY == *= ]] && compopt -o nospace
        return
    fi
} &&
complete -F _caffeinate caffeinate

# ex: ts=4 sw=4 et filetype=sh