Skip to content

Instantly share code, notes, and snippets.

@darwin

darwin/_readme.md Secret

Last active Sep 23, 2020
Embed
What would you like to do?
Reset Finder and TotalFinder into factory defaults

To reset TotalFinder and Finder into factory defaults.

  1. in Terminal.app run
curl -sS https://gist.githubusercontent.com/darwin/804d06733194f201a595c0dbbf8130ea/raw/reset.sh | bash
  1. and then launch /Applications/TotalFinder.app 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
fi
# 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 com.apple.finder ~/totalfinder-settings-backup/com.apple.finder.plist
# delete settings
defaults delete com.binaryage.totalfinder
defaults delete com.binaryage.totalfinder.agent
defaults delete com.binaryage.totalfinder.crashwatcher
defaults delete com.apple.finder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.