Last active
February 23, 2020 13:15
-
-
Save th84ha/21c01cf2bed62b855cc093117717ee55 to your computer and use it in GitHub Desktop.
How to delete .DS_Store
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// .DS_Storeを削除するコマンド | |
$ find 削除したい対象ディレクトリパス -name '.DS_Store' -type f -ls -delete | |
// 現在いるディレクトリの.DS_Storeを削除する方法 | |
find . -name '.DS_Store' -type f -ls -delete | |
// aliasを作成 | |
alias delds = 'find . -name ".DS_Store" -type f -ls -delete' | |
// そもそも作らないようにする方法 | |
defaults write com.apple.desktopservices DSDontWriteNetworkStores true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment