From 4755b97908bdf8e7d5b9ac1f3557da7ae083f076 Mon Sep 17 00:00:00 2001 From: Romain Vimont Date: Tue, 14 Mar 2023 23:45:08 +0100 Subject: [PATCH] Fix bash auto-completion handling Options having an argument impossible to auto-complete must be handled separately. --- app/data/bash-completion/scrcpy | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/app/data/bash-completion/scrcpy b/app/data/bash-completion/scrcpy index dd9c9520..3aa991b8 100644 --- a/app/data/bash-completion/scrcpy +++ b/app/data/bash-completion/scrcpy @@ -116,20 +116,25 @@ _scrcpy() { COMPREPLY=($(compgen -W "$("${ADB:-adb}" devices | awk '$2 == "device" {print $1}')" -- ${cur})) return ;; - -b|--video-bit-rate \ - |--codec-options \ + --audio-bit-rate \ + |--audio-buffer \ + |-b|--video-bit-rate \ + |--audio-codec-options \ + |--audio-encoder \ |--crop \ |--display \ |--display-buffer \ - |--encoder \ |--max-fps \ |-m|--max-size \ |-p|--port \ |--push-target \ + |--rotation \ |--tunnel-host \ |--tunnel-port \ |--v4l2-buffer \ |--v4l2-sink \ + |--video-codec-options \ + |--video-encoder \ |--tcpip \ |--window-*) # Option accepting an argument, but nothing to auto-complete