So using (tab)(tab) in the bash is a cool autocomplete feature. However, here's my situation; when I type e.g. ssh(tab)(tab), it will display all the sshs I have but I have no way of greping from there. Is there a command to replace the (tab)(tab) or an ssh option to see them all and then grep from there? Thanks.
Tell me more
×
Super User is a question and answer site for
computer enthusiasts and power users. It's 100% free, no registration required.
|
migrated from stackoverflow.com Jul 4 '12 at 23:04
|
I don't know how to accomplish exactly what you're asking, but instead you could possibly use the find command:
|
|||
|
|
|
You really need more info. What completion are you using for ssh? What does If it's hosts, you can use the hosts-complete keypress - I think alt-@ - anywhere, including after a grep. If it's something else, you'll need to figure out how to instantiate your completion some other way. |
|||
|
|