grep through tab completion list results
When I do $ myname_ << tab tab
I get lots of possibilities. Because I have customized my shell a lot, with the convention that my personal functions usually start with "my name". (It's all under version control, and the first thing I do when I have to start working on a new computer -- and there's a lot of them -- is I check out my "shell environment" so I feel at home.) I'm wondering if there's a way I can "grep" through the tab completion list, to narrow down the list of possibilities if there is some function/alias I can remember having written, but I can't remember exactly how I named it. Thanks! |
Not sure about filtering the tab completion list (I'd love to know if there is a way), but you can check for specific environment variables by doing
Code:
set |grep ... |
This may not be exactly what you want, but I found this code snippet for your bashrc file on some "tips & tricks" thread a while back that's supposed to show you all the previous entries for a command in your history. However for some reason it never worked for me. Maybe it'll do something for you.
Code:
# user added binds to special keys: If you know something about scripting, there should be an /etc/bash_completion file that has all sorts of code controlling what gets completed and what doesn't. Don't ask me how it all works though. |
All times are GMT -5. The time now is 12:06 PM. |