Dear Interweb...
Quick question for the Interweb regarding bash completion. If I do cat ~/[tab], I get to pick from 182 completions, as it lists all of the dotfiles. Is there a way of telling bash to only complete dot files if I put a dot, otherwise only complete non-hidden files? Answers on a postcard, or if you must, a comment on this blog. Thanks!
NP: IBM 1401, a User's Manual, Jóhann Jóhannsson
match-hidden-files (On)
This variable, when set to On, causes readline to match files whose names begin with a
‘.’ (hidden files) when performing filename completion, unless the leading ‘.’ is sup‐
plied by the user in the filename to be completed.
set match-hidden-files off
David