Skip to content

Instantly share code, notes, and snippets.

@epsimatic
Last active August 29, 2015 14:17
Show Gist options
  • Save epsimatic/d28b709e14e887ab39d7 to your computer and use it in GitHub Desktop.
Save epsimatic/d28b709e14e887ab39d7 to your computer and use it in GitHub Desktop.
prune-apple-apps.sh

Prune-Apple-Apps

  • Removes some Apple OS X bundled stuff.
  • Moves apps to Trash, so is safe
  • Should be re-run after every OS X (minor) update.

Typical output:

% ./prune-apple-apps.sh                                       15-03-23 - 21:38:18
Removing applications…
Password:
/Applications/Stickies.app -> /Users/username/.Trash/Stickies.app
/Applications/DVD Player.app -> /Users/username/.Trash/DVD Player.app
/Applications/Reminders.app -> /Users/username/.Trash/Reminders.app
/Applications/Game Center.app -> /Users/username/.Trash/Game Center.app
/Applications/Chess.app -> /Users/username/.Trash/Chess.app
/Applications/Utilities/Grapher.app -> /Users/username/.Trash/Grapher.app
/Applications/Utilities/Boot Camp Assistant.app -> /Users/username/.Trash/Boot Camp Assistant.app

Here's what we have:
380K	/Users/username/.Trash/Boot Camp Assistant.app
344K	/Users/username/.Trash/Chess.app
 16K	/Users/username/.Trash/DVD Player.app
588K	/Users/username/.Trash/Game Center.app
748K	/Users/username/.Trash/Grapher.app
1,2M	/Users/username/.Trash/Reminders.app
  0B	/Users/username/.Trash/Stickies.app
#!/bin/sh
echo "Removing applications…"
for App in \
Stickies \
Dashboard \
"DVD Player" \
Reminders \
"Game Center" \
Chess \
Utilities/Grapher \
"Utilities/Boot Camp Assistant" \
"Utilities/Digital Color Meter" \
"Utilities/Feedback Assistant";
do
[ -e "/Applications/$App.app" ] && sudo mv -v "/Applications/$App.app" ~/.Trash/
done
echo
echo "Here's what we have:"
du -sh ~/.Trash/*.app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment