Skip to content

Instantly share code, notes, and snippets.

Last active September 23, 2020 20:13
What would you like to do?
Reset Finder and TotalFinder into factory defaults

To reset TotalFinder and Finder into factory defaults.

  1. in run
curl -sS | bash
  1. and then launch /Applications/ again

Alternatively in step 1 you might want to copy&paste the commands below by hand (skip empty lines and comments)

#!/usr/bin/env bash
set -e -o pipefail -x
# politely ask Finder to quit
osascript -e "tell application \"Finder\" to quit"
# check if previsous backup folder already exists
if [[ -d ~/totalfinder-settings-backup ]]; then
rm -rf /tmp/totalfinder-settings-previous-backup
mv ~/totalfinder-settings-backup /tmp/totalfinder-settings-previous-backup
# backup settings as plists
mkdir ~/totalfinder-settings-backup
set +e
defaults export com.binaryage.totalfinder ~/totalfinder-settings-backup/com.binaryage.totalfinder.plist
defaults export com.binaryage.totalfinder.agent ~/totalfinder-settings-backup/com.binaryage.totalfinder.agent.plist
defaults export com.binaryage.totalfinder.crashwatcher ~/totalfinder-settings-backup/com.binaryage.totalfinder.crashwatcher.plist
defaults export ~/totalfinder-settings-backup/
# delete settings
defaults delete com.binaryage.totalfinder
defaults delete com.binaryage.totalfinder.agent
defaults delete com.binaryage.totalfinder.crashwatcher
defaults delete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment