Skip to content

Instantly share code, notes, and snippets.

@juliendkim
Last active November 9, 2019 05:13

Revisions

  1. juliendkim revised this gist Nov 9, 2019. No changes.
  2. juliendkim renamed this gist Nov 9, 2019. 1 changed file with 0 additions and 0 deletions.
  3. juliendkim renamed this gist Nov 9, 2019. 1 changed file with 0 additions and 0 deletions.
  4. juliendkim revised this gist Nov 9, 2019. No changes.
  5. juliendkim created this gist Nov 9, 2019.
    6 changes: 6 additions & 0 deletions Clear Mac Finder and Dock icon cache.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    $ 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 sudo rm -rfv {} \;
    $ sleep 3
    $ sudo touch /Applications/*
    $ killall Dock
    $ killall Finder
    1 change: 1 addition & 0 deletions Reset Launchpad layout.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    $ defaults write com.apple.dock ResetLaunchPad -bool true; killall Dock
    1 change: 1 addition & 0 deletions Single line - Clear Mac Finder and Dock icon cache.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    $ 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 sudo rm -rfv {} \; && sleep 3 && sudo touch /Applications/* && killall Dock && killall Finder