#40 adb: Add a context for remote commands to ease overriding

This commit is contained in:
Julien Nicoulaud 2011-08-21 21:59:56 +02:00
parent 812e448ee5
commit cb0b448e19
1 changed files with 1 additions and 0 deletions

1
_adb
View File

@ -97,6 +97,7 @@ _adb() {
&& ret=0
case "$state" in
(remote-command-args)
curcontext="${curcontext%:*:*}:adb-remote-cmd-$words[1]:"
if (( $+functions[_adb_remote_command_$words[1]_args] )); then
_adb_remote_command_$words[1] && ret=0
# TODO Write handlers for following commands: