bash-completion.sh
branchv_0
changeset 26 a6d332fa816c
parent 23 d2ad84dcf249
equal deleted inserted replaced
25:e0627da77dad 26:a6d332fa816c
    17 
    17 
    18 _relpipe_out_jack_completion_ports() {
    18 _relpipe_out_jack_completion_ports() {
    19 	if type relpipe-in-jack &> /dev/null && type relpipe-out-nullbyte &> /dev/null; then
    19 	if type relpipe-in-jack &> /dev/null && type relpipe-out-nullbyte &> /dev/null; then
    20 		relpipe-in-jack --list-ports true --list-midi-messages false 2>/dev/null \
    20 		relpipe-in-jack --list-ports true --list-midi-messages false 2>/dev/null \
    21 			| relpipe-out-nullbyte \
    21 			| relpipe-out-nullbyte \
    22 			| while _relpipe_out_jack_completion_read_nullbyte "name" "input" "output" "physical" "terminal" "mine" "midi" "type"; do
    22 			| while _relpipe_out_jack_completion_read_nullbyte "name" "uuid" "input" "output" "physical" "terminal" "mine" "midi" "type"; do
    23 				 if [[ "$midi" = "true" && "$input" = "true" && "$mine" = "false" ]]; then echo "$name"; fi; done
    23 				 if [[ "$midi" = "true" && "$input" = "true" && "$mine" = "false" ]]; then echo "$name"; fi; done
    24 	fi
    24 	fi
    25 }
    25 }
    26 
    26 
    27 _relpipe_out_jack_completion() {
    27 _relpipe_out_jack_completion() {