Hi Dov, A while ago there was a compdef for adb in https://github.com/zsh- users/zsh-completions, but we deleted it as there was one in zsh: https://github.com/zsh-users/zsh-completions/blob/ e70e7f8941d7437a161e3e4bb93f06e9c712c4a4/src/_adb I'm not sure which one is the better one, they probably need merging, but anyway the one in zsh-completions could complete adb push/pull. I hope this can be useful. Cheers, Julien 2017-01-25 10:41 GMT+01:00 Dov Grobgeld : > Hello, > > Here's a feature request, that may or may not be supposed by the current > adb function. > > In the pull or push command do remote completion of the files on the > device. The following zsh commands provides almost the functionality, > (except for "leaving" the current argument, instead of staying at it for > further completion): > > function -K adblist { > read -l cmdline; > args=("${(@s/ /)cmdline}") > > if [[ ( $args[2] == "pull" && $#args -eq 3 ) > || ( $args[2] == "push" && $#args -eq 4) ]]; then > reply=(`adb shell ls -a1d $1\* 2&>/dev/null`) > else > reply=(`ls -a1d $1*`) > fi > } > compctl -K adblist adb > > Regards, > Dov >