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_Store
files, you need to addto
~/.stow-global-ignore
(under your home directory)..stow-local-ignore
only applies to specific packages (subfolders) in your rootstow
directory. From the docs:For example, say you have two packages,
foo
andbar
, in your rootstow
directory. You runstow foo
andstow bar
.Note that
.stow-local-ignore
overwrites.stow-global-ignore
, so if you use a local ignore file, make sure to addto it as well.