Last active
June 16, 2023 21:39
-
-
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
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
# 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