参考:
http://cssforge.com/snippets/recursively-remove-ds-store/
http://www.zhihu.com/question/20345704
删除当前目录的.DS_store
find . -name '*.DS_Store' -type f -delete
删除所有目录的.DS_store
sudo find / -name “.DS_Store” -depth -exec rm {} \;
禁止.DS_store生成:
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool TRUE
恢复.DS_store生成:
defaults delete com.apple.desktopservices DSDontWriteNetworkStores