We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3071f3 commit 86f9134Copy full SHA for 86f9134
completions/_adb
@@ -5,9 +5,9 @@
5
6
_comp_cmd_adb__command_usage()
7
{
8
- COMPREPLY=($(compgen -W \
9
- '$("$1" help 2>&1 | command grep "^ *\(adb \)\? *$2 " \
10
- | command sed -e "s/[]|[]/\n/g" | _parse_help -)' -- "$cur"))
+ COMPREPLY=($(compgen -W '$("$1" help 2>&1 | \
+ command sed -e "/^ *\(adb \)\{0,1\} *$2 /!d;s/[]|[]/\n/g" | \
+ _parse_help -)' -- "$cur"))
11
}
12
13
_comp_cmd_adb()
0 commit comments