This file is indexed.

/etc/bash_completion.d/unar is in unar 1.9.1-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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# unar(1) completion

have unar &&
_unar()
{
    local cur prev

    COMPREPLY=()
    _get_comp_words_by_ref cur prev

    case $prev in
        -o|-output-directory)
            _filedir -d
            return 0
            ;;
        -p|-password)
            return 0
            ;;
        -e|-encoding|-E|-password-encoding)
            COMPREPLY=( $( compgen -W \
                    "$(unar -e list | sed -n 's/, //g;s/[()]//g;s/^  \* //p')" \
                    -- "$cur" ) )
            return 0
            ;;
        -f|-forks)
            COMPREPLY=( $( compgen -W 'visible hidden skip' -- "$cur" ) )
            return 0
            ;;
    esac

    if [[ "$cur" == -* ]] ; then
        COMPREPLY=( $( compgen -W '-o -output-directory -f -force-overwrite \
                -r -force-rename -s -force-skip -d -force-directory -D \
                -no-directory -p -password -e -encoding -E -password-encoding \
                -i -indexes -nr -no-recursion -t -copy-time -f -forks -h -help' \
                -- "$cur" ) )
    else
        _filedir '@(rar|zip|tar|gz|bz2|cab|7z|msi|exe|iso|lzma|xz|zipx|lzh|cpio|rpm|lha|z|tbz|tbz2|xar|pit|arc|nds|zoo|lz|deb)'
    fi

} &&
complete -F _unar unar

# lsar(1) completion

have lsar &&
_lsar()
{
    local cur prev

    COMPREPLY=()
    _get_comp_words_by_ref cur prev

    case $prev in
        -p|-password)
            return 0
            ;;
        -e|-encoding|-E|-password-encoding)
            COMPREPLY=( $( compgen -W \
                    "$(lsar -e list | sed -n 's/, //g;s/[()]//g;s/^  \* //p')" \
                    -- "$cur" ) )
            return 0
            ;;
    esac

    if [[ "$cur" == -* ]] ; then
        COMPREPLY=( $( compgen -W '-l -long -t -test -p -password -e \
                -encoding -E -password-encoding -pe -print-encoding -i \
                -indexes -j -json -ja -json-ascii -nr -no-recursion -h \
                -help' -- "$cur" ) )
    else
        _filedir '@(rar|zip|tar|gz|bz2|cab|7z|msi|exe|iso|lzma|xz|zipx|lzh|cpio|rpm|lha|z|tbz|tbz2|xar|pit|arc|nds|zoo|lz|deb)'
    fi

} &&
complete -F _lsar lsar

# Local variables:
# mode: shell-script
# sh-basic-offset: 4
# sh-indent-comment: t
# indent-tabs-mode: nil
# End:
# ex: ts=4 sw=4 et filetype=sh