Skip to content

Instantly share code, notes, and snippets.

@FeodorFitsner
Forked from ismyrnow/mac-clear-icon-cache.sh
Created December 27, 2022 18:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save FeodorFitsner/5fb1dbef2f9a49abb052293b51cc0911 to your computer and use it in GitHub Desktop.
Save FeodorFitsner/5fb1dbef2f9a49abb052293b51cc0911 to your computer and use it in GitHub Desktop.
Clear the icon cache on a Mac when you start seeing generic icons in Finder or the Dock
sudo rm -rfv /Library/Caches/com.apple.iconservices.store; sudo find /private/var/folders/ \( -name com.apple.dock.iconcache -or -name com.apple.iconservices \) -exec rm -rfv {} \; ; sleep 3;sudo touch /Applications/* ; killall Dock; killall Finder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment