I haven't been able to get the Finder's spotlight search to list .bashrc either (perhaps it's finding it, but not displaying because it's invisible?). But the command-line interface to spotlight... well, it can be convinced to show it. This works:
$ mdfind kMDItemFSName = ".bashrc" /Users/gordon/.bashrc
But for some reason the -name
option doesn't show it:
$ mdfind -name ".bashrc" $
...so I don't completely trust this to find what I think it should.