bash-completion.sh
branchv_0
changeset 9 14cf28d7681c
parent 2 01553c2ffa1d
child 15 b3239e4ad328
equal deleted inserted replaced
8:27579c5cdc51 9:14cf28d7681c
    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 	elif [[ "$w1" == "--jack-client-name"             && "x$w0" == "x" ]];    then COMPREPLY=("'relpipe-out-jack'")
       
    32 	elif [[ "$w1" == "--required-jack-connections"    && "x$w0" == "x" ]];    then COMPREPLY=("1")
    32 	else
    33 	else
    33 		OPTIONS=(
    34 		OPTIONS=(
    34 			"--jack-client-name"
    35 			"--jack-client-name"
       
    36 			"--required-jack-connections"
    35 		)
    37 		)
    36 		COMPREPLY=($(compgen -W "${OPTIONS[*]}" -- "$w0"))
    38 		COMPREPLY=($(compgen -W "${OPTIONS[*]}" -- "$w0"))
    37 	fi
    39 	fi
    38 }
    40 }
    39 
    41