This file is indexed.

/etc/bash_completion.d/openvpn is in openvpn 2.3.10-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
# bash completion for openvpn init.d script
# Written by Alberto Gonzalez Iniesta <agi@inittab.org>

_openvpn()
{

  local cur 

  COMPREPLY=()
  cur=${COMP_WORDS[COMP_CWORD]}

  if [ $COMP_CWORD -eq 1 ] ; then
    COMPREPLY=( $( compgen -W '$( /etc/init.d/openvpn 2>&1 \
              | cut -d"{" -f2 | tr -d "}" | tr "|" " " )' -- $cur ) )
  else
    COMPREPLY=( $( compgen -W '$( command ls /etc/openvpn/*.conf 2>/dev/null \
              | sed -e 's%/etc/openvpn/%%' -e 's/\.conf//' )' -- $cur ) )
  fi

}


complete -F _openvpn /etc/init.d/openvpn