Skip to content

Display and control your Android device

Fix bash auto-completion handling

Romain Vimont4755b97908bd
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