Skip to content

Instantly share code, notes, and snippets.

@vt-rli
Forked from ismyrnow/mac-clear-icon-cache.sh
Created March 17, 2022 08:29
Show Gist options
  • Save vt-rli/56f01ba035896679fb23795ac344f5f0 to your computer and use it in GitHub Desktop.
Save vt-rli/56f01ba035896679fb23795ac344f5f0 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