This file is indexed.

/usr/share/bash-completion/completions/ss-server is in shadowsocks-libev 3.1.3+ds-1ubuntu2.

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
_ss_server()
{
    local cur prev opts ciphers
    opts='-s -p -l -k -m -a -f -t -c -n -i -b -u -U -6 -d -v -h --reuse-port --fast-open --acl --manager-address --mtu --mptcp --no-delay --key --plugin --plugin-opts --help'
    ciphers='rc4-md5 aes-128-gcm aes-192-gcm aes-256-gcm aes-128-cfb aes-192-cfb aes-256-cfb aes-128-ctr aes-192-ctr aes-256-ctr camellia-128-cfb camellia-192-cfb camellia-256-cfb bf-cfb chacha20-ietf-poly1305 salsa20 chacha20 chacha20-ietf'
    COMPREPLY=()
    cur=${COMP_WORDS[COMP_CWORD]}
    prev="${COMP_WORDS[COMP_CWORD-1]}"
    case "$prev" in
        -f|-c|--acl)
            _filedir || COMPREPLY=( $(compgen -o plusdirs -f ${cur}) )
            ;;
        -s|-b)
            _known_hosts_real -- "${cur}" || OMPREPLY=( $(compgen -A hostname -- ${cur}) )
            ;;
        -m)
            COMPREPLY=( $(compgen -W "$ciphers" -- ${cur}) )
            ;;
        -a)
            _allowed_users || COMPREPLY=( $(compgen -u -- ${cur}) )
            ;;
        -p|-l|-k|-t|-n|-d|--mtu|--key|--plugin|--plugin-opts)
            ;;
        --manager-address)
            _known_hosts_real -- "${cur}" || OMPREPLY=( $(compgen -A hostname -- ${cur}) )
            _filedir || COMPREPLY+=( $(compgen -o plusdirs -f ${cur}) )
            ;;
        -i)
            _available_interfaces -a || true
            ;;
        *)
            COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
            ;;
    esac
}

complete -F _ss_server ss-server