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.
You really need more info. What completion are you using for ssh? What does
complete | grep ssh say?
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.