bash-completion.sh
branchv_0
changeset 7 039b3f8a3442
parent 0 3493d6e7016e
child 8 b498160cc2ab
equal deleted inserted replaced
6:1b17b8cdbfc3 7:039b3f8a3442
    27 		"false"
    27 		"false"
    28 	)
    28 	)
    29 
    29 
    30 	  if [[ "$w1" == "--list-input-devices"                             ]];    then COMPREPLY=($(compgen -W "${BOOLEAN_VALUES[*]}" -- "$w0"))
    30 	  if [[ "$w1" == "--list-input-devices"                             ]];    then COMPREPLY=($(compgen -W "${BOOLEAN_VALUES[*]}" -- "$w0"))
    31 	elif [[ "$w1" == "--list-input-events"                              ]];    then COMPREPLY=($(compgen -W "${BOOLEAN_VALUES[*]}" -- "$w0"))
    31 	elif [[ "$w1" == "--list-input-events"                              ]];    then COMPREPLY=($(compgen -W "${BOOLEAN_VALUES[*]}" -- "$w0"))
       
    32 	elif [[ "$w1" == "--list-windows"                                   ]];    then COMPREPLY=($(compgen -W "${BOOLEAN_VALUES[*]}" -- "$w0"))
    32 	else
    33 	else
    33 		OPTIONS=(
    34 		OPTIONS=(
    34 			"--list-input-devices"
    35 			"--list-input-devices"
    35 			"--list-input-events"
    36 			"--list-input-events"
       
    37 			"--list-windows"
    36 		)
    38 		)
    37 		COMPREPLY=($(compgen -W "${OPTIONS[*]}" -- "$w0"))
    39 		COMPREPLY=($(compgen -W "${OPTIONS[*]}" -- "$w0"))
    38 	fi
    40 	fi
    39 }
    41 }
    40 
    42