MacOS – Does Spotlight index dotfiles (OS X Yosemite)

macosspotlight

I want to create an Alfred workflow with some dotfiles (i.e. zsh config files).

Long story short, in Alfred, I only can play with files indexed by Spotlight.
Apparently, Spotlight doesn't index dotfiles as I can't get any dotfile in my Alfred results.

Any of my Spotlight setting that would force Spotlight to index dotfiles index is checked.

So, my question is there a way to force Spotlight to index dotfiles, dotfiles of a specific directory, a specific dotfile?

Best Answer

Using the mdfind command which queries the Spotlight Database I have to say no because the tests I performed would indicate so. In a Terminal using mdfind -name .bash_history as well as subsequent commands changing the .filename portion of the command, mdfind did not return the specific file names while only returning filenames that contained the .filename portion within where applicable.