Clear dock icon cache

Clear dock icon cache

When mac apps change their icons this sometimes does not trigger down to the Dock and the app switcher. This is also the case when you manually change the icon of an app.

Run the two following commands to clear the icon cache of the dock:

$ sudo find /private/var/folders/ -name com.apple.dock.iconcache -exec rm {} \;
$ killall Dock