10

I'm ssh-ing to my machine using my iPhone with an app called ServerAuditior. It doesn't have tab key. See screenshot.

How do I trigger autocomplete without the tab key? I don't want to type a lot of characters for cd-ing.

I have arrow keys in this app. I can swipe down left right to use arrow keys. It would be amazing if I can bind it to forward arrow key when blinker in at end of my command

enter image description here

13

You can bind the completion command to any key sequence. Pick something that's easy to type but unlikely to appear in a normal command, like say capital A. Put bind "A":complete in ~/.bashrc, and new bash instances will use capital A as well as TAB to invoke completion.

  • You don't, at least not to bash. Normally I would tell you to type Control-q A or Control-v A to get an A in this case but you don't seem to have a control key either. Pick Z or one of the easy symbols if A looks like something you can't live without. – Kyle Jones Jun 11 '13 at 21:51
  • Works for me. btw for the record my question was "how do I type A" which I deleted right before you answer it. – Mohsen Jun 11 '13 at 22:02
  • For some reason I didn't see the Ctrl button overlaying the text, so you could use that, I guess. – Kyle Jones Jun 12 '13 at 0:30
  • If you need an A in a command, as long as it is either a path/filename parameter or in the command itself, you can use ? then hit that A to autocomplete. Or you can put a file in some strategic location that you can autocomplete to, to get the A. Not something you'd want to do very often, but for the occasional time when you need whatever you bind to autocomplete to not autocomplete, it should work. – a CVn Jun 12 '13 at 11:37
27

Typing Ctrli sends the same character as Tab would. This should work without rebinding any keys.

7

in emacs mode, hitting EscEsc seems to have the same effect as Tab.

  • I have to hit ESC 6 times before it autocompletes, then it does it every two ESC after that. gnome-terminal in GNU screen – jordanm Jun 11 '13 at 21:58
4

According to the ServerAuditor page, "Tab activated by a double touch gesture".

Other iOS ssh clients that I've seen have a way of triggering a tab.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.