2

Regarding this post: adb shell auto-complete under Windows 7?

The owner's answer is: "Solved this problem by recompiling adb under cygwin. :)"

Unfortunately I can't send comments asking him how did he recompiled the adb under cygwin.

So my question is: How could I recompile adb under cygwin to get auto-compete working in adb?

EDIT: I realized that actually cygwin is already auto-completing when I type inside android bash, but the text is not being showed. Weird, isn't? E.g:

# ls /data/tem

[TAB]

# ls/data/tem    | <<<--- the cursor jumps to here

[ENTER]

It list all files and folders within /data/temp folder.

Community
  • 1
  • 1
Plinio.Santos
  • 1,709
  • 24
  • 31
  • you can post a comment on his answer. if you use @[username] replaceing [username] with his name it will even "ping" him and let him know that someone is talking to him. His profile says he was last seen on the site ~7hrs ago so it is a good bet that he is still active on the site, I'd say post a comment and give it a day or two to see if he replies back to you. – FoamyGuy Jan 25 '13 at 18:30

4 Answers4

6

You can use ADB enhanced Putty

It support auto complete and coloring

ADB enhanced Putty

you can download it from ADB Putty

Just start it suing the following command-line:

adb-putty.exe -adb -P 5037 transport-usb

read more at ADB enhanced Putty (replacement for "adb shell" command)

Robert
  • 39,162
  • 17
  • 99
  • 152
Ali
  • 460
  • 6
  • 13
3

Try PuTTY Tray. Its work for me!

  1. connect to the phone via "adb connect ip:port"
  2. run Putty Tray, select Adb and click "Open"

PS. You can specify device ID in session settings.

Radik Kurbanov
  • 300
  • 2
  • 6
1

I'm (fortunately) not a Windows user but I guess the problem is not in adb but in your shell that is not letting some keys (i.e. TAB) reach it.

Try this to see if TAB is received by the android shell:

adb shell
# printf '%d\n' "'$(dd bs=1 count=1 2>/dev/null)"
<type TAB+ENTER>
9

If you cannot see 9 (ascii TAB) then your problem is in the Windows shell and you could try cygwin bash to reproduce the test and see the results.

Diego Torres Milano
  • 65,697
  • 9
  • 111
  • 134
0

Are you mis-understanding the original post? I think that guy is saying he stopped using the Command Prompt and switched to cygwin.

You can make auto complete work in the Windows command prompt as well. Just run cmd /f instead of cmd. The other post has instructions on how to permanently enable autocomplete.

If you want to use cygwin then focus on trying to get autocomplete to work in cygwin. It's been years since I used cygwin, but I thought it was enabled by default. Maybe you need to turn off case sensitivity? How to deactivate uppercase check in cygwin folder autocompletion?

Regardless which shell you use it will only auto complete folder and file names.

Community
  • 1
  • 1
Nathan
  • 1,747
  • 1
  • 12
  • 12
  • You're right, I missed the main question in that post.I'm already using Cygwin and the issue I refer in this post is about auto-complete when I'm using an android's bash via Cygwin. – Plinio.Santos Jan 28 '13 at 13:07