--- a/bash-completion.sh Wed Oct 07 01:45:30 2020 +0200
+++ b/bash-completion.sh Wed Oct 07 22:29:38 2020 +0200
@@ -17,7 +17,7 @@
_relpipe_in_jack_completion_ports() {
if type relpipe-in-jack &> /dev/null && type relpipe-out-nullbyte &> /dev/null; then
- relpipe-in-jack --list-jack-ports true --list-midi-messages false 2>/dev/null \
+ relpipe-in-jack --list-ports true --list-midi-messages false 2>/dev/null \
| relpipe-out-nullbyte \
| while _relpipe_in_jack_completion_read_nullbyte "name" "input" "output" "physical" "terminal" "mine" "midi" "type"; do
if [[ "$midi" = "true" && "$output" = "true" && "$mine" = "false" ]]; then echo "$name"; fi; done
@@ -38,17 +38,19 @@
"false"
)
- if [[ "$w1" == "--jack-client-name" && "x$w0" == "x" ]]; then COMPREPLY=("'relpipe-in-jack'")
- elif [[ "$w1" == "--jack-connect-to-port" ]]; then COMPREPLY=($(compgen -W "$(_relpipe_in_jack_completion_ports)" -- "$w0"))
- elif [[ "$w1" == "--required-jack-connections" && "x$w0" == "x" ]]; then COMPREPLY=("0")
- elif [[ "$w1" == "--list-jack-ports" ]]; then COMPREPLY=($(compgen -W "${BOOLEAN_VALUES[*]}" -- "$w0"))
+ if [[ "$w1" == "--client" && "x$w0" == "x" ]]; then COMPREPLY=("'relpipe-in-jack'")
+ elif [[ "$w1" == "--port" && "x$w0" == "x" ]]; then COMPREPLY=("'midi-in'")
+ elif [[ "$w1" == "--connect-to" ]]; then COMPREPLY=($(compgen -W "$(_relpipe_in_jack_completion_ports)" -- "$w0"))
+ elif [[ "$w1" == "--required-connections" && "x$w0" == "x" ]]; then COMPREPLY=("0")
+ elif [[ "$w1" == "--list-ports" ]]; then COMPREPLY=($(compgen -W "${BOOLEAN_VALUES[*]}" -- "$w0"))
elif [[ "$w1" == "--list-midi-messages" ]]; then COMPREPLY=($(compgen -W "${BOOLEAN_VALUES[*]}" -- "$w0"))
else
OPTIONS=(
- "--jack-client-name"
- "--jack-connect-to-port"
- "--required-jack-connections"
- "--list-jack-ports"
+ "--client"
+ "--port"
+ "--connect-to"
+ "--required-connections"
+ "--list-ports"
"--list-midi-messages"
)
COMPREPLY=($(compgen -W "${OPTIONS[*]}" -- "$w0"))