Skip to content

Instantly share code, notes, and snippets.

@sorrycc
Created March 18, 2012 08:03
Show Gist options
  • Save sorrycc/2069822 to your computer and use it in GitHub Desktop.
Save sorrycc/2069822 to your computer and use it in GitHub Desktop.
Shell script to replace the Sublime Text 2 icon with a custom icon
#!/bin/bash
# Change this to the path to your icns file
ICON="$HOME/Sublime Text 2.icns"
cp -f "$ICON" "/Applications/Sublime Text 2.app"/Contents/Resources
cp -r "/Applications/Sublime Text 2.app" "/Applications/Sublime Text 2 copy.app"
rm -rf "/Applications/Sublime Text 2.app"
mv "/Applications/Sublime Text 2 copy.app" "/Applications/Sublime Text 2.app"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment