sangeeta.io
Feb 3, 2018 • Less than a minute read

Begone, .DS_Store!

.DS_Store files are hidden files created in every directory in Mac OS X. They contain certain attributes and metadata about the directory in which they reside. Sometimes they can inadvertently end up in commits, which is quite annoying! Here’s a quick tip to remove all .DS_Store files from a directory.

find . -name "*.DS_Store" -print0|xargs -0 rm

Furthermore, you can set this command as an alias and add it to your .bash_profile. If you do, just remember to restart your bash shell with exec -l bash.

Post by: Sangeeta Jadoonanan