bash-completion.sh
branchv_0
changeset 2 01553c2ffa1d
parent 0 3bc3b33ccb02
child 9 14cf28d7681c
equal deleted inserted replaced
1:7f3ab657dc50 2:01553c2ffa1d
    25 	BOOLEAN=(
    25 	BOOLEAN=(
    26 		"true"
    26 		"true"
    27 		"false"
    27 		"false"
    28 	)
    28 	)
    29 
    29 
    30 	if [[ "$w1" == "--TODO"                                            ]];    then COMPREPLY=($(compgen -W "${BOOLEAN[*]}" -- "$w0"))
    30 	if   [[ "$w1" == "--TODO"                                          ]];    then COMPREPLY=($(compgen -W "${BOOLEAN[*]}" -- "$w0"))
       
    31 	elif [[ "$w1" == "--jack-client-name"             && "x$w0" == "x" ]];    then COMPREPLY=("'relpipe-out-jack'")
    31 	else
    32 	else
    32 		OPTIONS=(
    33 		OPTIONS=(
    33 			"--TODO"
    34 			"--jack-client-name"
    34 		)
    35 		)
    35 		COMPREPLY=($(compgen -W "${OPTIONS[*]}" -- "$w0"))
    36 		COMPREPLY=($(compgen -W "${OPTIONS[*]}" -- "$w0"))
    36 	fi
    37 	fi
    37 }
    38 }
    38 
    39