You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add bash completion script to scrcpy installation (script included here) #3522
[ x] I have checked that a similar feature request does not already exist.
Is your feature request related to a problem? Please describe.
Related to the completion of device id for when you are using multiple devices.
Describe the solution you'd like
When typing scrcpy -s + TAB_KEY there is no bash completion for the device id. There is already a bash script for adb. What I've done is copying the adb script and made some modifications to it.
Describe alternatives you've considered
The current alternative is copying devices ids manually or typing adb -s + TAB_KEY, then changing the adb command to scrcpy
Additional context
I've attached the script. Just EXTRACT IT and copy it to /etc/bash_completion.d/ and enjoy! scrcpy.tar.gz
It would be very nice if this script(or a similar/cleaner version) could be installed automatically with the scrcpy installation.
Activity
rom1v commentedon Oct 7, 2022
scrcpy already has bash completion and zsh completion scripts.
I agree that they should be improved so that the
-soption is completed by the available devices exposed byadb devices.animaone commentedon Oct 7, 2022
Thanks. I've made a pull request with the modification in the default bash_completion script.
#3523
Add -s auto-completion for bash
Add -s auto-completion for zsh
Add -s auto-completion for bash
Add -s auto-completion for zsh
Merge tag 'v1.25'