Skip to content

Instantly share code, notes, and snippets.

@kennwhite
Last active June 16, 2023 21:39
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kennwhite/cc85ffefc7fd14fd23e509becae1819a to your computer and use it in GitHub Desktop.
Save kennwhite/cc85ffefc7fd14fd23e509becae1819a to your computer and use it in GitHub Desktop.
Undork macOS & OSX Finder scattering .DS_Store files everywhere and not being consistent about list views
# Use list view in all Finder windows by default
# Four-letter codes for the other view modes: `icnv`, `clmv`, `glyv`
defaults write com.apple.finder FXPreferredViewStyle -string "Nlsv"
# Remove other views, which Finder remembered because of the .DS_Store files:
find ~ -name ".DS_Store" -delete 2>/dev/null
defaults write com.apple.desktopservices DSDontWriteNetworkStores true
killall Finder
# Then reboot/logout to see it
# See: https://support.apple.com/en-us/HT208209 (it's meant as a fix for network SMB browsing, but it stops the madness)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment