I'm using GNU stow to manage my dotfiles, on a Mac.
I tried creating a .stow-local-ignore file in the root stow directory, with the contents:
\.DS_Store
But I still get errors:
WARNING! stowing bin would cause conflicts:
* existing target is neither a link nor a directory: .DS_Store
All operations aborted.
How do I configure stow to always ignore all .DS_Store files?
To ignore all
.DS_Storefiles, you need to addto
~/.stow-global-ignore(under your home directory)..stow-local-ignoreonly applies to specific packages (subfolders) in your rootstowdirectory. From the docs:For example, say you have two packages,
fooandbar, in your rootstowdirectory. You runstow fooandstow bar.Note that
.stow-local-ignoreoverwrites.stow-global-ignore, so if you use a local ignore file, make sure to addto it as well.