This file is indexed.

/usr/share/bash-completion/completions/unity-control-center is in unity-control-center 14.04.3+14.04.20140410-0ubuntu1.

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
#!/bin/bash
#
# unity-control-center tab completion for bash.

_unity_control_center()
{
	local cur prev command_list i v

	cur=${COMP_WORDS[COMP_CWORD]}
	prev=${COMP_WORDS[COMP_CWORD-1]}

	case "$prev" in
	-o|--overview)
		command_list=""
		;;
	*)
		if [ $prev = "unity-control-center" ] ; then
			command_list="--overview --verbose --version"
			command_list="$command_list appearance bluetooth color datetime display info keyboard mouse network power printers region screen sound universal-access user-accounts wacom "
		elif [ $prev = "--verbose" ]; then
			command_list="appearance bluetooth color datetime display info keyboard mouse network power printers region screen sound universal-access user-accounts wacom "
		fi

		for i in --overview --version appearance bluetooth color datetime display info keyboard mouse network power printers region screen sound universal-access user-accounts wacom ; do
			if [ $i = $prev ]; then
				case $i in
				keyboard)
					command_list="shortcuts typing"
					;;
				network)
					# FIXME
					# The first 3 commands need an object path like
					# /org/freedesktop/NetworkManager/Devices/1
					command_list="connect-3g connect-8021x-wifi show-device connect-hidden-wifi create-wifi"
					;;
				sound)
					command_list="applications effects input outputs"
					;;
				*)
					command_list=""
					;;
				esac
			fi
		done
		;;
	esac

	for i in $command_list; do
		if [ -z "${i/$cur*}" ]; then
			COMPREPLY=( ${COMPREPLY[@]} $i )
		fi
	done
}

# load the completion
complete -F _unity_control_center unity-control-center