Hacker News new | ask | show | jobs
by NhanH 3672 days ago
Tab autocomplete will show everything, and showing a screen full of name is not particularly useful. Most of the time I use ls it's something like "ls (asterisk)foo(asterisk)".

How do I escape asterisk on HN? :O

3 comments

In zsh, you can complete a glob.
bash too
But if there are multiple candidate completions, you don't get a list of them, the way you do from <tab> <tab> with no glob - it just completes unconditionally to the first candidate.
Edit: I had a guess about how to escape asterisks here, and it didn't work!
You can so the same with tab . Eg foo/(asterisk)bar<tab><tab>